Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jabref reports inexistent changes #5257

Closed
1 task done
j0hannes opened this issue Aug 28, 2019 · 15 comments · Fixed by #5665
Closed
1 task done

Jabref reports inexistent changes #5257

j0hannes opened this issue Aug 28, 2019 · 15 comments · Fixed by #5665
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Milestone

Comments

@j0hannes
Copy link

JabRef version 5.0-dev

Jabref frequently reports external changes although there have been none (I could find the corresponding bug report). Now, it also reports changed fields. However, both values are identical, e.g.

Modification of field: DATE
Value set externally: 1987
Current value: 1987
Modification of field: LOCATION
Value set externally: Stroudsburg, PA, USA
Current value: Stroudsburg, PA, USA
@koppor
Copy link
Member

koppor commented Aug 29, 2019

Refs #5085

@AEgit
Copy link

AEgit commented Sep 8, 2019

See also:
#4877
#4810

Might all represent the same bug (?).

@j0hannes
Copy link
Author

j0hannes commented Sep 8, 2019

What is new (the "changes" were empty before) is the information that e.g. the DATE changed from 1987 to 1987, which obviously is an error since it is the same value, that is, there was no change. So I'd reason that there is some error in the code. Maybe you monitor the inode of the bib file and when a change is reported you report back anything without checking values? Which still leaves to explore why there would be any change to the file at all, maybe atime changes as the file is indexed or accessed by other tools?

@Siedlerchr
Copy link
Member

Yes, we do watch the directory for change as it's not possible to watch a single file change.
Do you have any other files in the same dir as the bib file? e.g. the pdfs?

https://github.com/JabRef/jabref/blob/0dd091f31b86b02dd9e44b4ac86aa204d4dec9ef/src/main/java/org/jabref/gui/util/DefaultFileUpdateMonitor.java

The bib files is compared entrywise in the ChangeScanner

@j0hannes
Copy link
Author

j0hannes commented Sep 8, 2019

Yes, I have several bib files in the same directory. But obviously I cannot change them simultaneously in Jabref. So once I (auto)save one bib file, all other open bib files in the same directory are checked for changes for each single entry? Why don't you look at mtime (and maybe file size) to see if there really has been a modification?

I would also guess that there is something wrong in the ChangeScanner since it reports 1987 and 1987 to be different values.

@Siedlerchr
Copy link
Member

I could reproduce it somehow under linux:
This totally weird.

  1. Open the library
  2. Delete the sav and bak files
  3. Save
  4. Review changes pops up. All have the same value for author (e.g. a)
  5. Change author to b
  6. Value set externally = entered value = b, Current value = a, Current tmp value = a
  7. Dismiss changes,
  8. Hit save again, no changes popup
  9. Modify author to c
  10. Hit save
  11. Review pops up: Value set externally = entered value =c, Current value = a, tmp = b
  12. Hit accept changes
  13. Save again
  14. Review pops up: Value set externally = c, CurrentValue = c, tmp = a
  15. Dismiss
  16. Modify author to d
  17. Review pops up: Value set externally = entered value =d , Current val = c, tmp val=c
  18. Dimiss changes again
  19. Change author to e
  20. Review pops up: Value set externally = entered value = e, Current val = c, tmp val = d

@Siedlerchr Siedlerchr added the bug Confirmed bugs or reports that are very likely to be bugs label Sep 16, 2019
@koppor
Copy link
Member

koppor commented Sep 19, 2019

Currently, JabRef does not store an in-memory copy of the loaded file (at the time of reading). Thus, when much is changed AND the file is changed on disk, sometimes, JabRef does not know, which part has really changed. In case the "original" version is stored, JabRef can be smarter. In other words: The user experience of http://help.jabref.org/en/SQLDatabase also has to work for local files. This would also fix #5085 and JabRef#273.

@koppor
Copy link
Member

koppor commented Sep 19, 2019

The implementation would be Optimistic Offline Lock.

@koppor
Copy link
Member

koppor commented Sep 24, 2019

We heared interest of a interested persons. If someone else wants to work on this issue, please report back to me.

@koppor koppor self-assigned this Sep 24, 2019
@tobiasdiez tobiasdiez added this to the v5.0 milestone Sep 27, 2019
@tobiasdiez
Copy link
Member

@koppor are you or somebody else actively working on this?

@koppor
Copy link
Member

koppor commented Oct 19, 2019

I will ask at the back office.

@koppor
Copy link
Member

koppor commented Nov 21, 2019

Refs #5124. Fix could solve #156

@tobiasdiez
Copy link
Member

Hopefully, this should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks! Please remember to make a backup of your library before trying-out this version.

@JoKalliauer
Copy link
Contributor

@koppor , @tobiasdiez Is it moved from "High priority" to "Closed" because it is a duplicate of #4877 (which is in "needs triage") or because you assumed it to be solved?

I just tried

JabRef 5.0-beta.1--2019-12-15--0b8b1d6
Linux 4.15.0-72-generic amd64
Java 13.0.1

and it still persits.

@tobiasdiez
Copy link
Member

Originally, I'd hoped that this issue is fixed - but sadly its not. I think we only need one open issue for this, and as #4877 contains a lot of details this one is the canonical candidate.

Siedlerchr added a commit that referenced this issue Mar 14, 2021
30fb68e Create BJEDIS-ABNT-Number (#5255)
aafb868 Update geochimica-et-cosmochimica-acta.csl (#5321)
60ba25f british-journal-of-anaesthesia.csl: add comma delimiter between non-sequential citations eg. 1 4 7-9 -> 1, 4, 7-9  (#5313)
67e6564 Reindent/reorder (#5318)
c0d2a39 Ruby 3.0.0 (#5309)
76d60ff Update harvard-anglia-ruskin-university.csl (#5310)
bc18ac9 Create journal-for-the-study-of-the-new-testament.csl (#5312)
aff602c Update journal-of-food-protection.csl (#5315)
4503826 Update muscle-and-nerve.csl (#5317)
3bed58e constant redefinition
4d718a0 update documentaiton link
fa99e2f add comma delimiter between succesive numbers
d396f8b Allow privileged testing of PRs (#5307)
43b22c7 Update masarykova-univerzita-pravnicka-fakulta.csl, pravnik.csl, iso690-full-note-cs.csl (#5308)
8a31c1e Update copernicus-publications.csl (#5303)
96760bb Update anabases.csl (#5304)
744de6d removed locale (#5300)
7eb0d60 Update aviation-space-and-environmental-medicine.csl (#5297)
2769970 Update ruhr-universitat-bochum-lehrstuhl-fur-industrial-sales-and-ser… (#5298)
51e3f4c Update harvard-university-of-bath.csl (#5299)
5fce84f Create cns-spectrums.csl (#5290)
bb8082c Create journal-of-surgical-oncology.csl (#5259)
90c13ae Update ruhr-universitat-bochum-lehrstuhl-fur-industrial-sales-and-ser… (#5288)
4bab1ad Update early-christianity.csl (#5289)
636ba78 Update tatup-zeitschrift-fur-technikfolgenabschatzung-in-theorie-und-… (#5291)
b7cc511 Create biotechnologia.csl (#5292)
5bab881 Update journal-of-orthopaedic-trauma.csl (#5287)
5943413 Fix locales (#5285)
302bd65 Update universite-du-quebec-a-montreal-departement-dhistoire.csl (#5286)
860ae48 Add Haaga-Helia University of Applied Sciences Harvard style (#5282)
c1c27de  Localize Metropolia style title (#5283)
508da89 Fix presentation for Methods of Information in Medicine (#5284)
53e1d0b Create geschichte-und-gesellschaft.csl (#5216)
d7ed0cb Create universite-de-geneve-departement-de-francais-moderne.csl (#5212)
80c404b Update journal-of-orthopaedic-trauma.csl (#5281)
20c143a Adding publishers' names (#5280)
6e5cd59 Update sodertorns-hogskola-oxford.csl (#5279)
52f2621 dollar-brace
a260294 Create journal-of-microbiology-and-biotechnology.csl (#5277)
1fc979e Create qeios.csl (#5261)
86347b7 GH does this for us -- again, sorry guys
b649589 Create experimental-biology-and-medicine.csl (#5276)
12ae0b1 Revert "tell sheldon about the job state"
bdcae89 tell sheldon about the job state
1240067 Add Vegetation classification and Survey (#5271)
6f398f0 Major update to Gallia.csl (#5269)
2a74b2c Update filters.yaml (#5273)
20046d2 Update spec_helper.rb (#5272)
2ee0dd8 Create the-sociological-review.csl (#5260)
5b8d09c move filters to inert file to pacify Sheldon (#5268)
e5f3315 Localize more language descriptors in style titles (#5270)
bfd2942 Localize more language descriptors in style titles (#5267)
35e276f Fix variable used for the label after indication of number of pages (#5240)
60f6371 Create Universidade-do-Estado-do-Rio-de-Janeiro.csl (#5247)
d8cc2ae Create the-journal-of-the-acoustical-society-of-america-numeric.csl (#5256)
92259c1 Create journal-of-financial-and-quantitative-analysis.csl (#5264)
6ba8aab Create journal-of-vestibular-research.csl (#5258)
0c88f41 Update european-journal-of-international-law.csl (#5265)
cff5abc Put language descriptor within parentheses
4a62709 Update monash-university-harvard.csl (#5253)
64fd1aa Localize more language descriptors in style titles (#5262)
f6519cb Localize more language descriptors in style titles (#5257)
170ccae tiny fixes for universitat-basel-iberoromanistik.csl (#5254)
b7284c9 Localize more language descriptors in style titles (#5252)
f4ef858 Add "Baishideng Publishing Group" dependents (#5251)
266e7c3 Make world-journal-of-hepatology.csl to bpg.csl parent (#5243)
9129098 fix small formatting issues for mclc.csl (#5229)
5d9560b Create crispr-journal.csl (#5249)
a217299 Change "Czech" to "Čeština" in titles (#5248)
4fef39a Create journal-of-open-research-software.csl (#5245)
2bff1a6 Change "Dutch" to "Nederlands" in titles (#5242)
f28da34 Update spec_helper.rb (#5246)
e0e977c Move content from wiki pages to markdown files (#5194)
018304c Update universite-de-montreal-apa.csl (#5239)
3b83e5c Create sodertorns-hogskola-oxford.csl (#5234)
1335378 Stop notifying 8827 port on Zotero servers (#5237)
f079b2a Update author-year disambiguation (#5238)
60bb0c9 Update technische-universitat-dresden-medizin.csl (#5236)
e374657 Create Leidraad voor juridische auteurs 2019 (Dutch) (#5223)
0450d89 Add new style for U of Mannheim, Germanistische Linguistik (#5228)
81f0689 Create health-sports-rehabilitation-medicine.csl (#5233)
c152a44 Update Gemfile.lock (#5235)
748e1eb Update geochimica-et-cosmochimica-acta.csl (#5231)
06b9ce8 Update zeitschrift-fur-theologie-und-philosophie.csl (#5230)
e747cb1 haute-ecole-de-gestion-de-geneve: Make polyglot & et al changes
4cfedb7 Create universite-de-sherbrooke-histoire.csl (#5210)
a96a61e Update journal-of-glaciology.csl (#5222)
c6a94c9 Add Journal of Human Rights (#5227)
c5c9c5f Update ruhr-universitat-bochum-lehrstuhl-fur-industrial-sales-and-ser… (#5214)
ffb7aa6 Create comparativ.csl (#5215)
e07329a Update lancaster-university-harvard.csl (#5220)
c075d41 Update mimesis-edizioni.csl (#5219)
502970a Removed space in year only citation (#5218)
13e8c6b Update acta-scientiae-veterinariae.csl (#5209)
0699da6 Remake mammallia.csl for Oct/2020 guidelines. (#5207)
b2dd3fd Update journal-of-international-business-studies.csl (#5217)
dd52bfe Update quaternaire.csl (#5199)
ccb1b0d rebuild webpage and article-journal citations in journal-of-forensic-sciences.csl (#5203)
f02f4fb Create pedosphere.csl (#5196)
70dd87a Create open-gender-journal.csl (#5198)
d272998 Create the-quarterly-journal-of-economics.csl (#5197)
d27cab3 fix locale issues, add cite-locator (#5206)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 30fb68e
@koppor koppor moved this to Done in Prioritization Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants