Repository navigation
Conversation
When the organizer moves an event, attendees keep their old answer. RFC 6638, Section 3.2.8 says they must be asked again. Set PARTSTAT to NEEDS-ACTION for all attendees except the organizer when the start or end changes, or when the recurrence adds new dates. Fixes sabre-io#1282 Assisted-by: claude-code:claude-opus-5-5
A reply for one occurrence could be lost if the event crosses a daylight saving change. The end of the occurrence is now calculated the same way as in VObject. If the whole series moves, a changed occurrence is only reset if its own time changes. RECURRENCE-ID is compared as a point in time. Also make the code easier to read: one method decides if an event was rescheduled, and the organizer is checked once. Assisted-by: claude-code:claude-opus-5-5
|
Patch update: reviews with Claude (Fable 5.2 and Opus 5.5) found two bugs. If an attendee replies to a single occurrence, and this occurrence spans a daylight saving time change, the reply was reset to When the whole series moves, a changed occurrence is now only reset if its own time changes. Before, this depended on how the client stores the occurrence. (Found with Thunderbird)
New tests for all of this. I also tested it manually with Thunderbird against sabre and against Nextcloud, see the updated description. @SebastianKrupinski, do you think And are you fine with the simplification that every change to the |
|
Hi @ndo84bw So a few issues with this PR: a) we override the entire processICalendarChange() in NC none of the changes here have any effect. |
Fixes #1282. Replaced orphaned #1443
Problem:
When an organizer moves an event, attendees keep their old response (e.g., "Accepted"). According to the standard (RFC 6638 Section 3.2.8), the status should reset to "Needs Action" so attendees can confirm the new time.
Solution:
The status is now reset to "Needs Action" if:
Key Details:
Simplifications:
Testing:
Unit tests:
tests/Sabre/CalDAV/Schedule/ScheduleRescheduleTest.php(60 tests).Manual tests with Thunderbird 159 against sabre, without and with this patch. Without the patch, no PARTSTAT is reset in any of these cases. With the patch:
Manual tests with Thunderbird 159 against Nextcloud 36 dev (sabre/dav 4.7.0 with this patch): same cases, same results. Without the patch, Nextcloud keeps the old PARTSTAT. Nextcloud calls
processICalendarChange()from its owncalendarObjectChange(), so it needs no change.