Summary: | Changes to events and tasks made in KOrganizer don't sync to Google Calendar and Tasks | ||
---|---|---|---|
Product: | [Frameworks and Libraries] libkgapi | Reporter: | José Troncoso <jstroncoso> |
Component: | General | Assignee: | Daniel Vrátil <dvratil> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | cfeck, daniel.eimer, dozab2000, florian.lindner, gordon, jonnymo, kdebugs, me, nmset, panard, sebastian.niemeyer, t.kijas |
Priority: | NOR | ||
Version: | 2.1.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
José Troncoso
2014-03-21 17:00:03 UTC
I want to confirm that the Korganizer calendar will not sync edits to Google. That is, it appears to successfully sync new events to Google, however, after that, any changes made in Korganizer's calendar do not sync to Google. Deletions and new events successfully sync but edits do not sync. Also, as an FYI, if you watch the Akonadi Resource Configuration it does show the synchronization in process, however, all edits to any Korganizer events are never synced to Google. As a side note, I am not getting any error messages on my display as has been reported by José Troncoso. I have been more thoroughly testing my installation and I have found the same problem with KAddressBook. That is, additions and deletions of contacts in KAddressBook are synced to Google, however, edits are not. So, this is a problem for both KOrganizer's calendar and KAddressBook where edited entries are not synced to Google. I've just made a fresh installation of KDE 4.13.2 on Arch Linux on Virtual Box, and I keep getting same error on editing an event. This is the output to the console when creating the event. No problem here; the event has both a start time and an end time: akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Received reply from QUrl( "https://www.googleapis.com/calendar/v3/calendars/jstroncoso@gmail.com/events" ) akonadi_googlecalendar_resource_1(748)/LibKGAPI (raw data) KGAPI2::Job::Private::_k_replyReceived: "{ "kind": "calendar#event", "etag": "\"lALbFE98s88NEFGE7rntyxNtHBY/MjgwNTgzODA3Mzc0MDAwMA\"", "id": "fbiua9g8bc3rim7hj6n8fge1o8", "status": "confirmed", "htmlLink": "https://www.google.com/calendar/event?eid=ZmJpdWE5ZzhiYzNyaW03aGo2bjhmZ2UxbzgganN0cm9uY29zb0Bt", "created": "2014-06-16T11:43:56.000Z", "updated": "2014-06-16T11:43:56.943Z", "summary": "Test event", "creator": { "email": "jstroncoso@gmail.com", "displayName": "José A. F. Troncoso", "self": true }, "organizer": { "email": "jstroncoso@gmail.com", "displayName": "José A. F. Troncoso", "self": true }, "start": { "dateTime": "2014-06-19T12:00:00+02:00", "timeZone": "Europe/Madrid" }, "end": { "dateTime": "2014-06-19T13:00:00+02:00", "timeZone": "Europe/Madrid" }, "iCalUID": "fbiua9g8bc3rim7hj6n8fge1o8@google.com", "sequence": 0, "reminders": { "useDefault": false } } This is the output to the console when I drag the event on to the next day. This is the problem; the edit fails reporting a missing end time. This error happens every time I change an event or a task. akonadi_googlecalendar_resource_1(748)/LibKGAPI (raw data) KGAPI2::EventModifyJob::start: ("Authorization: Bearer ya29.LgCN7F4uoeTgISAAAAC2CubA1G4nKBrMXqXyv4Z_Djp8pmBvM_UTMJCe0MPyJA", "GData-Version: 3") akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::enqueueRequest: Queued QUrl( "https://www.googleapis.com/calendar/v3/calendars/jstroncoso@gmail.com/events/fbiua9g8bc3rim7hj6n8fge1o8" ) akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::Private::_k_dispatchTimeout: Dispatching request to QUrl( "https://www.googleapis.com/calendar/v3/calendars/jstroncoso@gmail.com/events/fbiua9g8bc3rim7hj6n8fge1o8" ) akonadi_googlecalendar_resource_1(748)/LibKGAPI (raw data) KGAPI2::Job::Private::_k_dispatchTimeout: "{ "description" : "", "end" : { "dateTime" : "2014-06-20T13:00:00+02:00", "timeZone" : "Europe/Madrid" }, "id" : "fbiua9g8bc3rim7hj6n8fge1o8", "location" : "", "reminders" : { "overrides" : [ ], "useDefault" : false }, "start" : { "dateTime" : "2014-06-20T12:00:00+02:00", "timeZone" : "Europe/Madrid" }, "status" : "confirmed", "summary" : "Test event", "transparency" : "opaque", "type" : "calendar#event" }" akonadi_googlecalendar_resource_1(748)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0xa2becf0) akonadi_googlecalendar_resource_1(748)/kio (KIOJob) KIO::TransferJob::slotFinished: KUrl("https://www.googleapis.com/calendar/v3/calendars/jstroncoso@gmail.com/events/fbiua9g8bc3rim7hj6n8fge1o8") akonadi_googlecalendar_resource_1(748)/kio (Scheduler) KIO::SchedulerPrivate::jobFinished: KIO::TransferJob(0xa2becf0) KIO::Slave(0xa1da8e0) akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Received reply from QUrl( "https://www.googleapis.com/calendar/v3/calendars/jstroncoso@gmail.com/events/fbiua9g8bc3rim7hj6n8fge1o8" ) akonadi_googlecalendar_resource_1(748)/LibKGAPI (raw data) KGAPI2::Job::Private::_k_replyReceived: "{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Missing end time." } ], "code": 400, "message": "Missing end time." } } " akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::Private::_k_replyReceived: Bad request, Google replied ' "{ "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Missing end time." } ], "code": 400, "message": "Missing end time." } } " ' akonadi_googlecalendar_resource_1(748)/LibKGAPI KGAPI2::Job::emitFinished: The problem continues with the recent KDE 4.13.3 release and verion 2.1.1 of libkgapi. I have found a somewhat awkward workaround, though: 1. Edit a task or event on KAddressBook. (doesn't sync) 2. Cut it. (syncs) 3. Paste it again. (syncs) With KDE 4.14.0 and libkgapi 2.2.0 things are getting a little better: 1. Tasks seem to sync fine when created, deleted and modified either way. However I still get the (false?) message "Invalid item payload". 2. Events don't seem to have improved: they sync correctly when created and deleted, but not when modified. Here when sync doesn't work I get the error message "Bad request". I can confirm this bug +1 I can confirm this bug same here, change a date of a calendar entry but it is not update on google I had a similar 'Bad request' error, when adding a new event. It turned out to be a badly configured time zone on my system. On the new event dialog, the combo box shown after clicking the blue 'Time zone' line was /etc/localtime, and not a real time zone. The file /etc/localtime was a regular file and not a link. After deleting that file and linking to /usr/share/zoneinfo/Europe/Paris, events could be added flawlessly. It may not fit to all who have reported above, worth trying however. I had a similar 'Bad request' error, when adding a new event. It turned out to be a badly configured time zone on my system. On the new event dialog, the combo box shown after clicking the blue 'Time zone' line was /etc/localtime, and not a real time zone. The file /etc/localtime was a regular file and not a link. After deleting that file and linking to /usr/share/zoneinfo/Europe/Paris, events could be added flawlessly. It may not fit to all who have reported above, worth trying however. My time zone is correctly configured (/etc/localtime -> /usr/share/zoneinfo/Europe/Madrid). However something is wrong with time zones because when I create an event on my Android phone the time zone is set by default to Central European Standard Time, but when I open the event on Korganizer the time zone it shows is Africa/Ceuta. Then if I modify the event, the changes don't sync on Google Events. On the other hand, task syncing seems to have been working fine for some time now. My time zone is correctly configured. Sometimes i can change an event successfully. Sometimes not. To reproduce the problem do the following: Create the event -> it works Change the date of the event -> it works Change the date a second time -> 'Bad request' Add or delete a event will always work. Also all operations against other cloud solutions like owncloud will work. I can confirm this bug with the exact same behaviour on Linux version 3.17.3-1-ARCH (builduser@thomas) (gcc version 4.9.2 (GCC) ) #1 SMP PREEMPT Fri Nov 14 23:13:48 CET 2014 using libkgapi 2.2.0-1 kdepim-runtime 4.14.2-1 kdepimlibs 4.14.2-1 No more problems when editing an event. All changes seems to be synced. Can someone confirm it is now working in the latest release? Yes. This bug appears to be fixed for events and tasks. Thanks for the update, let's close this. Can you please reopen it? It is NOT fixed in KDE5.4. +1 This bug has reappeared some time ago. Now I have KOrganizer 5.1, KDE Frameworks 5.17.0 and Qt 5.5.1, and changes to events and tasks made on the web or mobile never sync to KOrganizer. I think the problem with changes on server not syncing to KOrganizer is caused by bug 355908 which has been fixed and will be available next release of libkgapi. (In reply to Daniel Vrátil from comment #21) > I think the problem with changes on server not syncing to KOrganizer is > caused by bug 355908 which has been fixed and will be available next release > of libkgapi. Unfortunately it seems the bug is still (or may be again) there, because in KDE5.8.4 Korganizer 5.3.3 can't fetch events (& tasks) from google. Communication in the other direction works. |