Calendar event invitee emails and links are incorrect as events are deleted and restored from trash. #36051
Closed
5 of 9 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: caldav
Related to CalDAV internals
Bug description
Invitation/Cancellation emails for events need to occur when an event is deleted into or restored from the Calendar trash folder, but instead cancellation emails are sent both on "event delete" and again (duplicate) on "trash emptied", but are not being sent on "restored from trash to calendar".
Steps to reproduce
Duplicate Cancellation messages, incorrect token handling of deleted/cancelled event:
Missing Invitation Message when event restored from trash:
Expected behavior
When an event is newly added to the calendar, an "Invitation" email is sent, containing a link to accept/decline (unless
config:app:set dav invitation_link_recipients
is turned off). This is already correct.When an event is moved from the calendar to trash, a single "Cancelled" email should be sent to each invitee, and the STATUS of the attached VEVENT should be changed from CONFIRMED to CANCELLED (per RFC). (The STATUS is optional in the
METHOD: CANCEL
vevent sent to the invitee - it could be set to CANCELLED in this case, but note that removing an invitee from an event properly sends a CANCEL email to that invitee where the invitation is canceled but the event is not).the UI for /apps/dav/invitation/moreOptions/ (and simlilar) should say "This event has been canceled." rather than showing the form for accept/decline a cancelled event.
When the calendar trash is emptied, no emails should be generated, and as the calendar object is deleted, any calendar_invitation entries that refer to it should be deleted.
Installation method
Community Manual installation with Archive
Operating system
RHEL/CentOS
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: