Bug 233671 - Only syncs one of several google calendars connected to the same account
Summary: Only syncs one of several google calendars connected to the same account
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: GoogleData Resource (show other bugs)
Version: 4.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Adenilson Cavalcanti
URL:
Keywords:
: 237209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-08 01:41 UTC by naguz
Modified: 2012-11-12 18:50 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description naguz 2010-04-08 01:41:50 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Archlinux Packages

Well the "short" description says pretty much all there is to say. I have (and must have) two calendars on my google account. Only one is synced, the other is not. This is a bug with the gcal resource component of Akonadi. It COULD just be a missing feature, but I couldn't find any info suggesting that it is supposed to be this way. I assume quite a few people have more than one calendar.
Comment 1 Tobias Koenig 2010-08-02 19:07:37 UTC
*** Bug 237209 has been marked as a duplicate of this bug. ***
Comment 2 Ingo Ratsdorf 2010-08-25 04:40:38 UTC
Same problem here. Also using another "email" address ie the private google identification, does not work to access a secondary calendar.
Comment 3 Ingo Ratsdorf 2010-08-25 04:41:52 UTC
BTW, why is this still "UNCONFIRMED" after four months? This is extremely easy to confirm.
Comment 4 naguz 2010-09-11 23:35:20 UTC
I wonder too. WHY is this still UNCOMFIRMED? It takes roughly twenty five seconds to confirm this, even for a slow typer (55 if you have to make a second google calendar first). Is that really too much to ask that someone spends that much time to confirm a bug?

This works in Evolution. This works in Thunderbird/Lightning. Yet in KDE which wants to have the best integrated PIM-tools out there, not only does it NOT work, it is apparently not worth to spend <1min to confirm the bugreport/request in FIVE months. 

If you don't care at all about follow up bug reports, please just tell people instead of having an unattended bugtracker, and ask people report it wherever someone might actually read or respond to it instead.
Comment 5 Thomas PIERSON 2010-10-04 21:42:56 UTC
Hi,

Same issue for me. 
Only one calendar is synced. The other shared calendar are not synced.

Regards,
Thomas PIERSON
Comment 6 janow49420 2010-10-31 14:35:04 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 thoebert 2011-02-20 12:36:00 UTC
Any update on this issue? In our workgroup we organize all calendars on google but I can only see my calendar what renders this feature useless.
Comment 8 Marc Schiffbauer 2011-04-08 10:18:45 UTC
Will this be fixed before 4.6 release of kdepim?

Would really be awesome to have google calendar sync working in akonadi!
Comment 9 Martin Tlustos 2011-04-08 10:43:05 UTC
I know that there are caldav plugins for akonadi out there which will be included in a future version (they are in the kubuntu experimental repos already and seem to work quite well), but I don't know whether this will be soon...
With caldav you can r/w access multiple google calendars (although the setup is a bit more complicated than in evolution), and many other sites as well (like a corporate calendar that supports caldav).
Comment 10 Ingo Ratsdorf 2011-04-08 21:54:27 UTC
Unless google makes "their" implementation of caldav standard compliant, it will never work correctly and reliably with caldav clients.
It does not work in Thunderbird (unless you use the gdata plugin) nor does it in the various kde caldav/groupdav clients/akonadi resources.
YOU WILL LOSE DATA!
google doed not correctly support filters and they know pretty well, which makes me think that they are not really interested in it.

Ingo ratsdorf

> https://bugs.kde.org/show_bug.cgi?id=233671
> 
> 
> 
> 
> 
> --- Comment #9 from Martin Tlustos <martin tlustos gmail com>  2011-04-08 10:43:05 ---
> I know that there are caldav plugins for akonadi out there which will be
> included in a future version (they are in the kubuntu experimental repos
> already and seem to work quite well), but I don't know whether this will be
> soon...
> With caldav you can r/w access multiple google calendars (although the setup is
> a bit more complicated than in evolution), and many other sites as well (like a
> corporate calendar that supports caldav).
> 
> -- 
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are a voter for the bug.
> You are on the CC list for the bug.
Comment 11 Marc Schiffbauer 2011-04-09 18:14:57 UTC
(In reply to comment #10)
> Unless google makes "their" implementation of caldav standard compliant, it
> will never work correctly and reliably with caldav clients.

But this is a google calender plugin, not a generic caldav plugin, right?


> It does not work in Thunderbird (unless you use the gdata plugin) nor does it
> in the various kde caldav/groupdav clients/akonadi resources.

But gcaldaemon [1] for example works very well. I am using it since some years now as a workaround until some part of KDE will be able to sync wit google calendars. (google <-> gcaldaemon <-> local ics files <-> kde)


> YOU WILL LOSE DATA!

Did not happen a single time to me.

> google doed not correctly support filters and they know pretty well, which
> makes me think that they are not really interested in it.

What kind of filters are you talking about?

-Marc

[1] http://gcaldaemon.sourceforge.net/
Comment 12 Ingo Ratsdorf 2011-04-09 22:16:39 UTC
My previous comment #10 was related to the quoted comment #9 about calDAV.

Please note that there are two ways of connecting to google calendars:

1) via gdata akonadi resource
Has exactly the restriction as described in this whole thread: It can only sunc with the primary calendar, not with secondary ones. This is due to the design of the gadata resource and could relatively easily changed by changing the login method, as done in Mozilla Thunderbird gdata plugin.
Please also see my comment #2 and #3.

2) Via caldav akonadi resource
COULD sync with google when google would comply with their implementation of caldav, as stated in my comment #10. Since the akonadi groupdav resource uss caldav filters to filter incidences from the collections, which google does not fully support, loss of data occurred - at least in the past. The resource would get the collection returned from google instead just "the" element and would delete the first element in the collection, ie the oldest one.
Furthermore, there is a bug in the kdepim libs that prevents receiving updates, a bug that will be fixed in 4.6.2 as far as i know.
Since I have moved successfully away from google, I can not comment on any existing caldav rtesources for akonadi and whether they would work with google.

But be warned: googles implementation of caldav is not standard compliant in many ways and there is a STRING POSSIBILITY OF LOSING DATA.
Unless you use method 1) of course.

Suggest you try out working opensource caldav implementations like daviCal (requires root server, PHP and postgres), egroupware (runs on shared server with PHP and various databases) or the lightweight version SabreDAV (PHP and various datbases).

I have an egroupware installation running that successfully syncs with Thunderbird, Akonadi and iPhone.

Cheers,
Ingo
Comment 13 Marc Schiffbauer 2011-04-10 00:30:15 UTC
(In reply to comment #12)
> My previous comment #10 was related to the quoted comment #9 about calDAV.
> 

I see.

> Please note that there are two ways of connecting to google calendars:
> 
> 1) via gdata akonadi resource
> Has exactly the restriction as described in this whole thread: It can only sunc
> with the primary calendar, not with secondary ones. This is due to the design
> of the gadata resource and could relatively easily changed by changing the
> login method, as done in Mozilla Thunderbird gdata plugin.

This sounds promising. Then I would be very happy if this would be done.
Are there patches around somewhere already?


-Marc
Comment 14 Ingo Ratsdorf 2011-04-11 12:10:33 UTC
To be honest, I could not find the google calendar resource in KDE PIM runtime. It must be somewhere else as it also installs as a separate package.
If someone can find the sourcecode for me, I MIGHT give it a try. It will need new prefs and a new UI to manually set the URL (so it can be set to secondary calendars) All the rest can probably stay as it is, so should not be too complicated.

I do not have much time, but given the ridiculous age of this bug, some more weeks or months won't hurt.
Comment 15 thoebert 2011-04-24 10:10:30 UTC
(In reply to comment #10)
> It does not work in Thunderbird (unless you use the gdata plugin) nor does it
> in the various kde caldav/groupdav clients/akonadi resources.
> YOU WILL LOSE DATA!


Maybe I don't get it. In Thunderbird I just install Lightning and for every single calendar I have in my google account I add a new one in Lightning, i.e.: https://www.google.com/calendar/dav/mail@me.com/events

This works perfectly in both directions and I never had any data loss. If the gdata akonadi resource isn't able to do this than something like in Lightning would be fine: Just enter the url of every single google calendar but even this isn't possible and you only can read the calendar but not write to it.
Comment 16 Ingo Ratsdorf 2011-04-24 11:50:31 UTC
Hi,

This is exactly what I was saying in my previous comment.
For the primary calendar, autodetection  is fine, for all other calendars the URL would need to be entered manually in the KDE resource.

Regards,
Ingo

On 24/04/2011, at 20:10, <thoebert@gmx.net> wrote:

> https://bugs.kde.org/show_bug.cgi?id=233671
> 
> 
> 
> 
> 
> --- Comment #15 from  <thoebert gmx net>  2011-04-24 10:10:30 ---
> (In reply to comment #10)
>> It does not work in Thunderbird (unless you use the gdata plugin) nor does it
>> in the various kde caldav/groupdav clients/akonadi resources.
>> YOU WILL LOSE DATA!
> 
> 
> Maybe I don't get it. In Thunderbird I just install Lightning and for every
> single calendar I have in my google account I add a new one in Lightning, i.e.:
> https://www.google.com/calendar/dav/mail@me.com/events
> 
> This works perfectly in both directions and I never had any data loss. If the
> gdata akonadi resource isn't able to do this than something like in Lightning
> would be fine: Just enter the url of every single google calendar but even this
> isn't possible and you only can read the calendar but not write to it.
> 
> -- 
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are a voter for the bug.
> You are on the CC list for the bug.
Comment 17 meyerm 2011-07-06 12:27:24 UTC
I'm using the groupdav akonadi resource to access the google account which has access to the calendar I want to use. Kontact finds "my" own calender which I can also edit in KOrganizer :-). But how do I find (or at least enter) the Group Calendar, which was created and shared by somebody else (in the Google web interface it says I can only display but not edit the calendar, adding events is possible).
Comment 18 meyerm 2011-07-06 13:31:10 UTC
OK, managed to get another associated calender into kontact. As has been written you must do that manually for now, unfortunately. But here's how:

- Add a new DaviCal ressource to Akonadi. Do NOT enter Hostname or so but press cancel.
- Then you can edit the details. Choose "CalDav", your google "username" and "password" but in the remote URL do not enter the well-known URL to your own calendar but replace your email adress with the group id of the shared calendar. Then the URL looks like https://www.google.com/calendar/dav/LONGSTRING@group.calendar.google.com/user/.
- You can get this LONGSTRING by looking into the calendar details in the google web interface.
Comment 19 Ingo Ratsdorf 2012-11-11 20:48:46 UTC
Can we close this bug?
The Akonadi Google Resource is working fine for me with ToDos and Calendars under >4.9.2 with secondary Calendars too.
Comment 20 Martin Tlustos 2012-11-12 10:54:48 UTC
Works great for me, thank you!
Comment 21 Marc Schiffbauer 2012-11-12 14:15:58 UTC
Please, which is now the officail "Akonadi Google Resource"? Where can I find it?

There have been several approaches in the past that tried to implement an akonadi connection to the google services and I am a bit confused now which one you are talking about. 

Thanks!
Comment 22 Allen Winter 2012-11-12 14:26:18 UTC
thanks for the feedback.
resolving then
Comment 23 Marc Schiffbauer 2012-11-12 18:50:20 UTC
OK, I think a found it. I had not enabled it in my kdepim-resources package. Now enabled. and: amazing! Works like a charm now! Thanks