fix(caldav): Add sharee to address list when calendar is shared #45054
fix(caldav): Add sharee to address list when calendar is shared #45054SebastianKrupinski merged 1 commit intomasterfrom
Conversation
|
Setting to draft because we have to test this locally before it's integrated. We do not want to experiment with this on production instances |
Agreed. |
Test scenario
Case 1Steps:
Expected outcome:
Case 2Steps:
Expected outcome:
|
b1610cc to
d9113c8
Compare
a8b4ad7 to
83f6266
Compare
Disregard... Initial comment... The better solution is to supply both the Sharer and Sharee addresses to the iTipBroker... This keeps the calendar owner logic sounds and in tacked and fixes the reason the iTipBroker does not generate proper messages when a Sharee creates an event with attendees in the Sharers calendar. |
|
Additional thoughts... Some front end UI changes that would be beneficial...
Some back end changes that would be beneficial...
Draw backs...
|
|
Testing Instructions:
|
21c2c8e to
2fa5baf
Compare
|
Notes: Testing Current Shared Calendar Behavior Case 1 Test: Case 1 Outcome: Case 2 Test: Case 2 Outcome: |
|
Notes: Testing New Shared Calendar Behavior Case 3 Test: Case 3 Outcome: Case 4 Test: Case 4 Outcome: |
|
I tried reproducing the 1st use case from Daniel but I can't add an additional attendee from the secondary user Bob with whom the calendar was shared. Am I missing something? |
|
Did you enable the UI selection from the calendar PR? |
|
Works, although the following issue might be confusing: Admin invites Bob |
Pretty sure we would need to rewrite the Sabre iTipBroker class to fix this. |
2fa5baf to
3ba1cbe
Compare
miaulalala
left a comment
There was a problem hiding this comment.
Works - mentioned the double ics issue but that's not something essential.
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
e636ad6 to
0df3036
Compare
ChristophWurst
left a comment
There was a problem hiding this comment.
Tested inviting myself in a calendar shared with me, setting the sharer as organizer
Works 👍
|
Thank you all, most especially SebastianKrupinski, for the dedicated work on this. I determined my skills at present were insufficient to assist in the testing, but I truly appreciate the work and am anxious to try it out. |
Summary
Sabre invitation plugin skip invites if the organizer of the event is not the owner of the calendar. That happens for shared calendars because \OCA\DAV\CalDAV\Calendar::getOwner overwrites \Sabre\CalDAV\Calendar::getOwner. Upstream returns the principaluri of the owner, we return the principaluri of the sharee.
Want to test if this revives the invites in shared calendars. Adjustments for other places that use the getOwner method might be required.
Checklist