Crash after a renamed POST can create a duplicate note #9

Open
opened 2026-11-12 11:10:00 +01:00 by kneth · 0 comments
Owner

If the app crashes right after a POST where the server renamed the note (e.g. "Idea" became "Idea (2)"), the next sync can create one duplicate note.

Why: the index is saved once per sync pass. Recovery works by adopting a local file that is identical (path and content) to an unknown server note. A renamed note doesn't match by path, so it's uploaded again.

If the app crashes right after a POST where the server renamed the note (e.g. "Idea" became "Idea (2)"), the next sync can create one duplicate note. Why: the index is saved once per sync pass. Recovery works by *adopting* a local file that is identical (path and content) to an unknown server note. A renamed note doesn't match by path, so it's uploaded again.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kneth/nnotes#9
No description provided.