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

Desktop: Fixes #11594: Fix syncLockGoneError on sync with certain share configs #11611

Conversation

personalizedrefrigerator
Copy link
Collaborator

Summary

Sync lock support is now disabled by default. As a result, a sync error is not necessarily related to sync locks if no sync lock is present.

This pull request partially resolves #11594.

Testing plan

  1. Load a version of Joplin from before this pull request
  2. Create two users on the same team (team user A, team user B).
  3. Enable end-to-end encryption for both users.
  4. Share a notebook in read-only mode from user A to user B.
  5. Accept the share and sync.
  6. Share a notebook in writable mode from user B to user A.
  7. Accept the share and sync.
  8. As user A, make a change to a note from the notebook shared in step 5.
    • Specifically, mark a previously complete task as incomplete.
  9. Sync.
  10. Observe the "syncLockGone" error.
  11. Load the version of Joplin from this pull request.
  12. Sync.
  13. Observe that sync completes without errors.
  14. Change a note
  15. Sync.

Note

While this commit seems to fix the error, all changes made from user A to the modifiable notebook from step 5 are marked as conflicts (e.g. the change in step 14) and unapplied on sync. As such, I suspect that there is also a bug related to local (app not server) handling of sync permissions in the 3.2 release.

…rtain share

config

Note: I was able to reproduce the original issue with the following
steps:
1. Create two users on the same team (team user A, team user B).
2. Enable end-to-end encryption for both users.
3. Share a notebook in read-only mode from user A to user B.
4. Accept the share and sync.
5. Share a notebook in writable mode from user B to user A.
6. Accept the share and sync.
7. As user A, make a change to a note from the notebook shared in step 5.
   - Specifically, mark a previously complete task as incomplete.
8. Sync.
9. Observe the "syncLockGone" error.

While this commit seems to fix the error, all changes made from user A
to the modifiable notebook from step 5 are marked as conflicts and
unapplied on sync. As such, I suspect that there is also a bug related
to local (app not server) handling of sync permissions in the 3.2 release.
@personalizedrefrigerator personalizedrefrigerator added bug It's a bug sync sync related issue labels Jan 9, 2025
@personalizedrefrigerator personalizedrefrigerator changed the base branch from dev to release-3.2 January 9, 2025 09:27
@laurent22 laurent22 merged commit 597f318 into laurent22:release-3.2 Jan 9, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug sync sync related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Joplin Cloud: Joplin v3.2: Sync fails with "syncLockGone: User does not have write access to this share"
2 participants