-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dav): Add occ command to fix missing caldav sync tokens #44130
Conversation
foreach ($uris as $uri) { | ||
$this->addChange($subscriptionId, $uri, 3, self::CALENDAR_TYPE_SUBSCRIPTION); | ||
} | ||
$this->addChanges($subscriptionId, $uris, 3, self::CALENDAR_TYPE_SUBSCRIPTION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also help with #40814 because there it eliminates increasing the sync token for every single change
wrong hamza tagged haha, fixed |
There are a few small bugs. Working on them right now. |
Tested with Thunderbird. Seems fine now. Modifications propagate too 😌 |
/backport to stable28 |
/backport to stable27 |
/backport to stable26 |
Tested on Mac ✅ |
Tested with DAVx5. Works, but also doesn't seem to use the sync mechanism. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested per instructions with Thunderbird, works as expected - the second sync doesn't pick up the changes but after running occ dav:fix-missing-caldav-changes
the new event is show after another sync. Very nice 👏
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
bf9716c
to
f40f962
Compare
Summary
Our CalDAV backend keeps record of all modifications of the calendar so that clients can do a partial and efficient sync. Unfortunately there are cases where we lost that data: #44075.
This change attempts to restore a correct sync state by
Tracking an addition for all existing eventsnot necessaryTODO
How to test
occ dav:fix-missing-caldav-changes
Checklist