You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In another client (using Windows here), move a handful of notes from notebook A to notebook B, and allow to sync
Share text content to the Android client (where notebook A was last used)
Sync starts in the background while loading the editor screen
Unrelated note titles flash by as the move sync progresses, presumably as the selected note (or position) changes
For each title seen, the current editor contents (i.e. what was just shared) is added as a revision of that note
This makes bulk actions rather perilous if you don't ensure other clients are synced up -- I've had to unpick this from revision history of 10+ notes after finding a bulk-move destroyed their contents.
I believe this previously happened against Android 3.1.7 as well as 3.2.2.
Expected behaviour
Background syncs to happen safely and successfully even if the app is launched from a share.
This might not be limited to shares, but any quick access to the editor -- sharing just conveniently jumps straight into editing the new note.
It also looks like this can happen to a lesser extent on Windows too, having just tried the clients reversed: after moving a handful of notes between notebooks on Android, and creating a new note on Windows, focus is lost from the current note during a sync involving moves, and if you're typing at the time then your changes go into the to-be-moved note (which in this case prevents it from being moved, I guess because a new revision is created stating its parent is the old notebook again).
Terrance
changed the title
Share during sync of moved notes rewrites unrelated notes
Share/editing during sync of moved notes rewrites unrelated notes
Dec 14, 2024
FWIW as of 3.2.7 the bug no longer happens in practice to me on Android so far. I guess the new functioning "every 5 minutes" automatic sync does mitigate it quite well: when I switch to a difference device, sync has already happened recently in the background or will be fast as few changes will sync, narrowing the window for the bug to happen.
I think on one occasion recently (possibly since 3.2.7) I got a do you want to save changes style prompt appear when editing on Android, which I hadn't seen before? I assume this appeared when the sync happened and tried to send me to a different note.
I've yet to have it come up again when trying to reproduce the original issue manually, nor have I been able to corrupt the note content across notes again, though I may be getting unlucky with timing if the window has effectively recently been reduced.
Operating system
Android
Joplin version
3.2.2
Desktop version info
Desktop:
Mobile:
Current behaviour
This makes bulk actions rather perilous if you don't ensure other clients are synced up -- I've had to unpick this from revision history of 10+ notes after finding a bulk-move destroyed their contents.
I believe this previously happened against Android 3.1.7 as well as 3.2.2.
Expected behaviour
Background syncs to happen safely and successfully even if the app is launched from a share.
Logs
📎 syncReport-1733701980570.txt
The text was updated successfully, but these errors were encountered: