Repository navigation
fix(#614): Disconnecting a linked calendar or account keeps the local copy as a normal shar - #616
Conversation
Disconnecting a Google/CalDAV/Microsoft account or a single mirrored calendar now records it in detached_mirrors and keeps it as a normal, editable calendar labelled 'früher <Anbieter>'; a mapping row pointing at 'detached:<collection>' makes both sync workers skip that remote calendar. Linking the same account again offers re-attaching (one confirm dialog); accepting points the mapping back at the kept calendar (Microsoft event pairings move to the new account) so the sync resumes without duplicates, and declining keeps the calendars as they are. CONCEPTS.md open point removed; choices: one combined offer, closing the dialog means no, single-detached calendars are only offered after the account itself is relinked, Google/Microsoft copies stay events-only. Refs #614 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Security review (claude-fable-5-1): no blocking finding. No auth/IDOR/CSRF/injection/XSS defects; all new DB paths user-scoped, table names from constant map, labels escaped. Data-safety notes: (1) re-attach reuses stale vdirsyncer status (index-based pair names, per-user status dir) so deletions made while detached replay to the provider and vice versa, contradicting the 'nothing deleted at provider' promise; (2) trash restore into a single-detached Microsoft mirror queues a restore the worker cannot map and the account sync fails on every run; (3) detachCalendar accepts names already prefixed 'detached:' and orphans the mapping row; (4) no test proves user scoping of detachCalendar/resolveReattachOffers; (5) former-account msgraph event mappings retained until deleteUser (no secrets); (6) dismissing the re-attach dialog permanently declines. |
Refs #614
Disconnecting a Google/CalDAV/Microsoft account or a single mirrored calendar now records it in detached_mirrors and keeps it as a normal, editable calendar labelled 'früher '; a mapping row pointing at 'detached:' makes both sync workers skip that remote calendar. Linking the same account again offers re-attaching (one confirm dialog); accepting points the mapping back at the kept calendar (Microsoft event pairings move to the new account) so the sync resumes without duplicates, and declining keeps the calendars as they are. CONCEPTS.md open point removed; choices: one combined offer, closing the dialog means no, single-detached calendars are only offered after the account itself is relinked, Google/Microsoft copies stay events-only.
Driver gates (measured, not claimed)
red/green output
🤖 Generated with Claude Code