nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.3k stars 4.06k forks source link

[Bug] (CalDav) Shared calendar event invitations Accept/Decline not working #48511

Open SebastianKrupinski opened 4 weeks ago

SebastianKrupinski commented 4 weeks ago

Steps to reproduce

  1. Create shared calendar as user A and share with user B and C
  2. Create event in shared calendar as User B and invite User C
  3. Accept invitation from the email as User C

Expected behavior

When clicking Accept/Decline the participant status in the event in the shared calendar and personal calendar should be updated.

Actual behaviour

Currently the participant status is only updated in the personal calendar.

Calendar app version

No response

CalDAV-clients used

NC UI

Browser

No response

Client operating system

No response

Server operating system

No response

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

No response

Updated from an older installed version or fresh install

None

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

SebastianKrupinski commented 4 weeks ago

Test results.

Screenshot 2024-10-01 174414

Screenshot 2024-10-01 174430

SebastianKrupinski commented 4 weeks ago

Issue is caused by the OCA\DAV\Controller\InvitationResponseController::buildITipResponse() method. The generated iTIp message is formatted incorrectly, as the sender and recipient are the same user.

Screenshot 2024-10-01 180430

The iTip message should be from sender "user1" to recipient "user3" (the organizer)