Problems with sync and sharing notes (Joplin 3.6.4, macOS)

Operating system

macOS

Joplin version

3.6.4

Desktop version info

oplin 3.6.4 (prod, darwin)

Device: darwin, Apple M2 Pro
Client ID: 2c7d2db6070f44dd90180c0df4a63a4c
Sync Version: 3
Profile Version: 49
Keychain Supported: Yes
Alternative instance ID: -
Sync target: Joplin Cloud
Editor: Rich Text

Revision: 85e5bbd

Backup: 1.5.1
Freehand Drawing: 4.3.0

Sync target

Joplin Cloud

What issue do you have?

I get an error when trying to share my notes with colleagues using their email when using a shared cloud. In addition, this happens even on folders that are empty.

Screenshots

Log file

bug_1.txt (1.4 KB)

Does that happen on a specific notebook? Or any notebook? If you create a new notebook and try to share it, does it happen too?

This issue could possibly happen when sharing a notebook that was shared with you in "view mode" (read-only) but I'm not sure that's really the issue here

Based on the stack trace, it looks like Joplin is doing the following (in updateFolderShareIds):

  1. Notices that a folder has been unshared.
  2. Tries to clear the share_id on the folder.
  3. This fails, since Joplin thinks the folder is read-only (see checkIfItemCanBeChanged in the stack trace).
    • Since the share doesn't exist, checkIfItemCanBeChanged might be returning false on this line.

I'm working on a pull request that should resolve the issue.

Edit: See:

1 Like

Thanks for looking into it! I wonder how the data ended up like this though? I guess it was a read-only share, that got unshared, but in that case the notebook should have been deleted?

I've tried all these methods, but the problem still persists.

Update: The pull request is included in the 3.6.6 pre-release.

@just-tinovka, please try the latest version and let us know if it helps