Bug 328616 - When accepting invitation into google calendar resource im set as organizer
Summary: When accepting invitation into google calendar resource im set as organizer
Status: RESOLVED FIXED
Alias: None
Product: libkgapi
Classification: Frameworks and Libraries
Component: calendar (show other bugs)
Version: 2.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 08:47 UTC by Witko
Modified: 2021-01-23 00:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.17


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Witko 2013-12-10 08:47:11 UTC
When accepting invitation im set as the organizer and the event has me as organizer in google calendar as well. This then creates confusion as people tend to accept my accept response as new invitation - so more same events exist which causes confusion.

Reproducible: Always

Steps to Reproduce:
What happens:
1. I receive invitation(most probbably created by MS Ofice) in kmail
2. I accept it into google calendar resource

Actual Results:  
* I am set as the organizer of this event
* The event is created in google calendar with me as organizer
* The response mail sent with me as organizer

Expected Results:  
* The real organizer is organizer of the event
* The same goes for google calendar
* The correct accept response is sent

After creating the bug im not entirely sure whether its a KOrganizer issue or libkgapi issue, but i assume the second.
Comment 1 Daniel Vrátil 2014-01-17 14:52:14 UTC
It's actually Google who set email (ID) of the calendar as organizer of the event - libkgapi uploads correct organizer, but Google returns stored event with the new organizer. I'll see whether we can override it.
Comment 2 Simone 2021-01-23 00:27:04 UTC
Git commit a48887dbbc9bdc7da50c1f93c7235c16620bba36 by Simone Scalabrino.
Committed on 19/12/2020 at 10:09.
Pushed by knauss into branch 'master'.

First attempt to fix bug 328616

As reported in https://bugs.kde.org/show_bug.cgi?id=328616, when a user
accepts an invitation to an event, when it is loaded on Google Calendar,
it creates a new event with the user as the organizer. To prevent this,
the "import" API should be used instead of the "insert" API.
With this change, the organizer is checked against the account name of
the user: if they match, the event is created (previous implementation),
otherwise the event is imported ("import" API).
This still requires some tests to check if it does not break anything.
FIXED-IN: 5.17

M  +1    -1    autotests/calendar/data/event1_create_request.txt
M  +2    -2    autotests/calendar/data/event2.json
M  +2    -2    autotests/calendar/data/event2_create_request.txt
M  +2    -2    autotests/calendar/data/event2_create_response.txt
M  +2    -2    autotests/calendar/data/event2_modify_request.txt
M  +2    -2    autotests/calendar/data/event2_modify_response.txt
M  +2    -2    autotests/calendar/data/events_fetch_page2_response.txt
M  +10   -0    src/calendar/calendarservice.cpp
M  +8    -0    src/calendar/calendarservice.h
M  +12   -1    src/calendar/eventcreatejob.cpp

https://invent.kde.org/pim/libkgapi/commit/a48887dbbc9bdc7da50c1f93c7235c16620bba36