https://bugs.kde.org/show_bug.cgi?id=437853
Allen Winter <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit|https://invent.kde.org/pim/ |https://invent.kde.org/pim/ |libkgapi/-/commit/0a64f721d |libkgapi/-/commit/d1ca157e1 |532cce9f48f101eb8c388e74d85 |69856b1b427b831ab96fb0cde8c |f39f |b1ed --- Comment #3 from Allen Winter <[email protected]> --- Git commit d1ca157e169856b1b427b831ab96fb0cde8cb1ed by Allen Winter. Committed on 23/11/2026 at 12:59. Pushed by winterz into branch 'release/26.12'. EventCreateJob: add calendar owner as attendee when importing events Invitations organized by someone else are stored via events.import. Google rejects such imports with participantIsNeitherOrganizerNorAttendee unless the target calendar's owner is the organizer or an attendee. This happens whenever the invitation went to another address of the user (e.g. a work address), and always for secondary calendars, whose owner is the calendar ID itself. Accepted invitations therefore never reach Google Calendar. This adds the calendar ID as an accepted attendee to the imported copy when it's missing. Import sends no notifications, so only the user's private copy is affected. Tested with the Akonadi Google resource (26.08.2), using an invitation addressed to a non-Google address of the user. The import into the primary calendar and into a secondary calendar both failed before the change and succeed after it. The original organizer and attendee list are kept. Tests: EventCreateJobTest failed because the import request now includes the calendar owner as an extra attendee. The expected request in event1_create_request.txt now contains that attendee. The added attendee also gets the calendar ID as a fixed UID. Without it, KCalendarCore generated a random UID, which was sent to Google as the attendee id and changed on every run. A new test row, "import, owner is attendee", imports the same event into a calendar whose owner is already an attendee and checks that the request is left unchanged. (cherry picked from commit 0a64f721d532cce9f48f101eb8c388e74d85f39f) 281f3ad4 EventCreateJob: add calendar owner as attendee when importing events 0d9bb828 EventCreateJob: use a fixed UID for the added calendar owner attendee Co-authored-by: Max Schwarz <[email protected]> M +6 -0 autotests/calendar/data/event1_create_request.txt C +1 -1 autotests/calendar/data/event1_import_owner_attendee_request.txt [from: autotests/calendar/data/event1_create_request.txt - 088% similarity] M +13 -4 autotests/calendar/eventcreatejobtest.cpp M +21 -1 src/calendar/eventcreatejob.cpp https://invent.kde.org/pim/libkgapi/-/commit/d1ca157e169856b1b427b831ab96fb0cde8cb1ed -- You are receiving this mail because: You are watching all bug changes.
