Repository navigation
[stable35] fix(dav): make reminder and recurrence handling robust - #67176
Open
backportbot[bot] wants to merge 1 commit into
Open
backportbot[bot] wants to merge 1 commit into
backportbot[bot] wants to merge 1 commit into
Conversation
Deleting a webcal subscription removed reminders by the subscription id, but calendar_reminders.calendar_id refers to calendars, so it removed the pending reminders of an unrelated calendar. Subscriptions never get reminders, so that cleanup is dropped, and the reminder index job no longer indexes subscription objects either. Due reminders were processed in one loop that only caught MaxInstancesExceededException. A reminder that failed in any other way aborted the run and stayed queued, so every later run stopped at it and no reminders were sent. Each reminder is now processed on its own; one that fails is logged and removed, like reminders of invalid events. Reminders of shared calendars went to sharees for private events as well. They now go to the owner only, matching how private events are shown to sharees. The last occurrence of a COUNT rule was found by stepping through every occurrence, and REPEAT alarms were expanded REPEAT times, both without an upper bound. A COUNT above Sabre's maxRecurrences is now treated like an endless rule, and REPEAT is only used together with DURATION, as RFC 5545 requires, capped at 100 additional reminders. Reminders already removed by a subscription deletion are not restored; they are recreated when the event is saved again. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
GVodyanov
force-pushed
the
backport/67045/stable35
branch
from
November 30, 2026 10:12
26fc5a7 to
3a3ce47
Compare
GVodyanov
marked this pull request as ready for review
November 30, 2026 10:13
GVodyanov
requested review from
a team,
SebastianKrupinski and
tcitworld
as code owners
November 30, 2026 10:13
GVodyanov
requested review from
Altahrim and
salmart-dev
and removed request for
a team
November 30, 2026 10:13
GVodyanov
approved these changes
Nov 30, 2026
ChristophWurst
approved these changes
Nov 30, 2026
DerDreschner
approved these changes
Nov 30, 2026
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #67045
This branch has no per-calendar reminder muting, so the reminder query doesn't select the muting columns and recipients aren't filtered by it. The
sendEventRemindersToSharedUserscheck stays as it is on this branch, and private events still go to the owner only. The tests are adjusted to match.Assisted by ClaudeCode:claude-opus-5-5