Repository navigation
fix(itip): don't parse master as a date when it's missing from the new event - #794
Open
SebastianKrupinski wants to merge 1 commit into
Conversation
…w event Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #794 +/- ##
============================================
- Coverage 98.76% 98.66% -0.11%
+ Complexity 1876 1759 -117
============================================
Files 71 71
Lines 5345 5167 -178
============================================
- Hits 5279 5098 -181
- Misses 66 69 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Broker::parseEvent()throwsInvalidDataException: The supplied iCalendar datetime value is incorrect: masterwhen an attendee updates an event and the new version no longer contains the master event the attendee was part of.Issue
In
parseEventForAttendee(), instances are gathered from both the old and new event info. If the old event had the attendee in the masterVEVENT, but the new event only contains an instance with aRECURRENCE-ID(some clients, e.g. eM Client with Exchange-originated events, add aRECURRENCE-IDto non-recurring events), themasterinstance ends up witholdstatusset andnewstatusnull.Because the statuses differ, a reply is built for it. Since
masteris not present in$eventInfo['instances'], the code falls into the branch intended for instances removed viaEXDATEand callsDateTimeParser::parse('master', ...), which throws. The exception aborts the whole CalDAVPUTfrom the client.Correction
Skip the
masterinstance when generating the reply if the new event has no master instance, since there is nothing to reply for. Replies for the remaining instances (e.g. the one with theRECURRENCE-ID) are generated as before.