Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(dav): don't send reminders of events that ended long ago - #67242

Merged
CarlSchwan merged 1 commit into
masterfrom
fix/dav-outdated-reminders
Dec 1, 2026
Merged

CarlSchwan merged 1 commit into
masterfrom
fix/dav-outdated-reminders

Conversation

@DerDreschner

@DerDreschner DerDreschner commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

If the reminder job couldn't run for a while, its next run sends every reminder that has piled up, also by email to external attendees and even if the event ended years ago. On Oracle the job has been failing since 30.0.0, so this has to land before (or with) the fix for #63148.

A reminder is skipped now if both its due time and the end of its event are more than a day ago. Nothing changes for late cron runs, reminders after an event, and running or upcoming events. Series continue with the next occurrence whose reminder isn't due yet, as before.

Not changed: an upcoming occurrence of a series whose reminder became due during the outage still gets none. Until now, an email about an older occurrence was sent instead.

How to test (throwaway instance with MariaDB, as the SQL changes all events; replace the years if needed):

  1. Create an event for tomorrow with an email reminder.
  2. Move it back by a year:
    UPDATE oc_calendarobjects SET calendardata = REPLACE(calendardata, ':2026', ':2025');
    UPDATE oc_calendar_reminders SET notification_date = notification_date - 31536000, recurrence_id = recurrence_id - 31536000;
  3. occ config:app:set dav sendEventRemindersMode --value occ
  4. occ dav:send-event-reminders doesn't send an email. On master it does.

TODO

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

When the reminder job couldn't run for a while, its next run sent every
reminder that had piled up, also by email to external attendees and no matter
how long ago the event was. On Oracle the job has been failing since 30.0.0,
so fixing its query would release all of them at once.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable35

@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable34

@DerDreschner

Copy link
Copy Markdown
Member Author

/backport to stable33

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants