-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Reproducible bug in "review changes" #1430
Comments
Thanks for your report 👍 |
Refs #970. |
From time to time we have 3-4 users working on the same db.bib file (about 6500 referencies in it). File is located on network drive. Sometimes someone loses their changes. Not all users are so advanced to see Review changes block in the sidebar. As I see the workflow: Two users open db.bib file and edit some entries (add/fix/remove) for a long time. Each JabRef instance remembers what entries are modified by local user. Regulary (after autosave timeout) local file with changes is saved. When second instance finds that remote file is changed it should merge changes from local memory and remote file that are not intersecting (and maybe run autosave again in the background). For intersecting changes show Review changes and highlight (blink?) it somehow on sidebar. Thanks. |
The bigger problem for us is not that Review changes is not visible enough, it just has a bug.
Version 3.2 does not have this issue but 3.3 and 3.4 do. I know you work hard on the data base connection feature but maybe there is a fast fix for this in the meantime... |
@JabRef/developers WDYT? |
I would try to create a test case checking for this behavior. Then run git
bisect to find out which commit smashes the behavior. My guess is that
#1126 could have something to with it, but I'm not sure at all.
|
#1126 is not related as it was released only in 3.4, but not in 3.3. Hence, the issue is caused by something else. |
Error somehwere in between these 80 commits a71c2b0...fc7e175 Will try to refine it further. |
Quite complicated. It is probably related to the IDs of BibEntries. Here my git bisect log
|
Okay, I have wrote a fix, but I am not completely sure whether this really solves the problem. Maybe you could also help to test this. In a few minutes, a new release in the fix-1430 folder will be available at http://builds.jabref.org/fix-1430/ - could you confirm that this fixes your issue? |
WOHOOO - it works! |
Excellent. Sadly, there are no automated tests for the collaboration feature - hence we currently rely on user feedback. But we are open for contributions in that area, if someone wants to put this under test. |
@wilthan any news regarding further testing? |
@simonharrer: we did not see any more issues during our regular work. Typically we have 3-5 people working with one network file for about 8h a day. |
Ok, will merge it in. Thanks for the feedback! :) |
JabRef version 3.3 and also in
JabRef 3.4dev--snapshot--2016-05-19--master--ed638e2
windows 7 6.1 amd64
Java 1.8.0_66
When multiple users (in the test case: 2) work on the same file which is located on a network drive.
Steps to reproduce:
1 (Pc1) open database (Pc2) open database
2 (Pc1) create test
3 (Pc1) save
4 (Pc2) review changes
5 (Pc2) add entry-accept
6 (Pc1) save
7 (Pc2) review changes
8 (Pc2) delete entry accept
9 (Pc2) save
10 (Pc1) review changes
11 (Pc1) delete entry-not accept
12 (Pc1) save
13 (Pc2) review changes
14 (Pc2) add entry-accept
15 (Pc1) save
16 (Pc2) review changes
17 (Pc2) delete entry -not accept
After step 5 both local copies should be identical with the file content. Regardless, after saving again another change shows up and now wants to delete the previously added file.
On a large scale you add up with multiple copies of the same reference and/or a deleted reference, dependent on what changes each user accepts. We had to go back to 3.2, it also shows glitches with multiple users on one file but less often and so far, not reproducible.
The text was updated successfully, but these errors were encountered: