Skip to content

fix(#613): Microsoft 365: each Microsoft calendar gets its own mirror calendar instead of i - #615

Merged
BeSovereign merged 1 commit into
mainfrom
fix/issue-613
Oct 19, 2026
Merged

BeSovereign merged 1 commit into
mainfrom
fix/issue-613

Conversation

@BeSovereign

@BeSovereign BeSovereign commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Refs #613

Each Microsoft calendar is mirrored into its own opaque VEVENT-only collection, synced both ways and listed under the account in the sidebar. The Graph push loop now skips resource names the sync cannot map and names them as not synced, instead of recording a mapping that broke every later sync of the account. The #516 E2E test now creates its calendar before the app loads, fixing the CI race where the dialog's calendar select missed it, and the #613 E2E test deletes the mirror collections it creates.

Driver gates (measured, not claimed)

  • Suites: lint: 1 passed, 0 failed | node: 1941 passed, 0 failed | python: 191 passed, 0 failed | e2e: 315 passed, 0 failed
  • Red/green check on declared tests: server/test/python/test_issue613_msgraph_calendar_mirrors.py, server/test/issue613_msgraph_mirror_calendars.test.js, server/test/msgraph.test.js, server/test/python/test_issue335_worker_tls_verification.py, server/test/python/test_issue343_fail_fast.py, server/test/python/test_issue536_sync_worker_hygiene.py, server/test/python/test_issue597_provider_deletes_to_trash.py, server/test/python/test_issue60_msgraph_sync_writes_events.py, server/test/python/test_issue97_msgraph_delta_sync.py, e2e/calendar.spec.js, e2e/event_timezones.spec.js
red/green output
RED without the change:
ocess_params (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/node_modules/express/lib/router/index.js:346:12)
[WebServer]     at next (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/node_modules/express/lib/router/index.js:280:10)
[WebServer]     at /home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/server/index.js:199:3
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [CalDAVClient] Sync token invalidated by server (status 403), falling back to initial sync


GREEN with the change:
ocess_params (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/node_modules/express/lib/router/index.js:346:12)
[WebServer]     at next (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/node_modules/express/lib/router/index.js:280:10)
[WebServer]     at /home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-613/server/index.js:199:3
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [CalDAVClient] Sync token invalidated by server (status 403), falling back to initial sync

🤖 Generated with Claude Code

Each Microsoft calendar is mirrored into its own opaque VEVENT-only collection, synced both ways and listed under the account in the sidebar. The Graph push loop now skips resource names the sync cannot map and names them as not synced, instead of recording a mapping that broke every later sync of the account. The #516 E2E test now creates its calendar before the app loads, fixing the CI race where the dialog's calendar select missed it, and the #613 E2E test deletes the mirror collections it creates.

Refs #613

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@BeSovereign

Copy link
Copy Markdown
Contributor Author

Security review (claude-fable-5-1): no blocking finding. No exploitable defect found. Hardening notes: (1) msgraph_worker.py:468 mapping keyed by user-supplied UID with a global primary key lets a mirror writer clobber another account's mapping (duplicates only); (2) msgraph_worker.py:485-496 deletes at Microsoft on absence from REPORT, so a partial 207 is data-loss; (3) missing canEdit treated as editable, Graph 403 fails loudly; (4) nextLink/deltaLink followed blindly, pre-existing, #335 test guards TLS; (5) new _push_restores mirror check untested.

@BeSovereign
BeSovereign merged commit e76d10d into main Oct 19, 2026
5 checks passed
@BeSovereign
BeSovereign deleted the fix/issue-613 branch October 19, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant