Skip to content

[stable35] fix(dav): make reminder and recurrence handling robust - #67176

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/67045/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/67045/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

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 sendEventRemindersToSharedUsers check 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

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>
@backportbot backportbot Bot added 3. to review Waiting for reviews AI assisted labels Nov 30, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Nov 30, 2026
@GVodyanov
GVodyanov force-pushed the backport/67045/stable35 branch from 26fc5a7 to 3a3ce47 Compare November 30, 2026 10:12
@GVodyanov
GVodyanov marked this pull request as ready for review November 30, 2026 10:13
@GVodyanov
GVodyanov requested review from Altahrim and salmart-dev and removed request for a team November 30, 2026 10:13
@nextcloud-bot nextcloud-bot mentioned this pull request Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants