Bug 229073

Summary: Does not sync when no events in google callendar
Product: [Frameworks and Libraries] Akonadi Reporter: Petr Kolesnikov <petr>
Component: GoogleData ResourceAssignee: Adenilson Cavalcanti <savagobr>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: kdepim-bugs, Stephan, vkrause
Priority: NOR    
Version: 4.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Petr Kolesnikov 2010-03-01 22:36:48 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Ubuntu Packages

I found interesting think about akonadi's googledata module. When the google calendar does not contain any event, syncing fails. There was used assumption there has to be at least one event.

It starts working after I had added one event.

Problematic code part:
          /* GCalendar returns last updated entry as first element */
          event = gcal_event_element(&all_events, 0);
          if (!event) {
                kError() << "Failed to retrieve last updated event.";
                const QString message = i18nc("@info:status",
                                        "Failed getting last updated"
                                        " event.");
                emit error(message);
                emit status(Broken, message);
                return;

          }
Comment 1 Petr Kolesnikov 2010-03-01 22:38:18 UTC
It is located in:

akonadi-googledata-1.0.1/calendar/gcalresource.cpp:

void GCalResource::retrieveItems( const Akonadi::Collection &collection )
Comment 2 Stephan Wienczny 2010-08-09 02:43:13 UTC
I can confirm this bug. My googlecalendar was empty and I tried to sync my lokal events to googlecalendar but nothing happens. Then I added a test event to googlecalendar and the synchronization started working.
Comment 3 Denis Kurz 2016-09-24 20:36:42 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 4 Denis Kurz 2017-01-07 21:40:45 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.