Bug 437853 - Google calendar refuses invite sent to different mail address
Summary: Google calendar refuses invite sent to different mail address
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: 5.17.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 08:49 UTC by Maarten ter Huurne
Modified: 2023-04-22 06:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten ter Huurne 2021-05-30 08:49:59 UTC
SUMMARY

I received an invite as an ICS file on my main mail address, which is not a GMail address. I wanted to add it to my Google Calendar (different account, but both configured in Kontact), so I could access it from my Android phone. KOrganizer reported "1 incidence was imported successfully" in a blue bar at the bottom of the screen. However, the event wasn't added to the calendar.

STEPS TO REPRODUCE
1. Create an ICS file with a non-Google e-mail address as the attendee.
2. Try to add that event to a Google calendar.

OBSERVED RESULT

In the logging of Akonadi, I found this:

org.kde.kgapi: Bad request, Google replied ' "{\"error\":{\"errors\":[{\"domain\":\"calendar\",\"reason\":\"participantIsNeitherOrganizerNorAttendee\",\"message\":\"The owner of the calendar must either be the organizer or an attendee of an event that is imported.\"}],\"code\":400,\"message\":\"The owner of the calendar must either be the organizer or an attendee of an event that is imported.\"}}" '
org.kde.pim.google: Got error: KGAPI2::EventCreateJob(0x564b09f142f0) "Bad request."

EXPECTED RESULT

Ideally, KOrganizer would rewrite the attendee field to match the e-mail address that is tied to the calendar, when the attendee is a different mail identity of the user.

In any case, KOrganizer should not report a successful import when Google's server rejected the API call.

SOFTWARE/OS VERSIONS
Linux distro: openSUSE Tumbleweed
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 21.04.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION