After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740656 - Can't add Google Calendar: 403 FORBIDDEN
Can't add Google Calendar: 403 FORBIDDEN
Status: RESOLVED WONTFIX
Product: california
Classification: Other
Component: backing
master
Other Linux
: High critical
: 0.4.0
Assigned To: California Maintainers
California Maintainers
gnome[unmaintained]
: 741515 (view as bug list)
Depends on: 664353
Blocks:
 
 
Reported: 2014-11-24 20:52 UTC by Jim Nelson
Modified: 2019-10-10 14:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jim Nelson 2014-11-24 20:52:03 UTC
When the user attempts to add a Google Calendar to California, they're presented with this error message:

Unable to retrieve calendar list: Authentication required: <HTML>
<HEAD>
<TITLE>Forbidden</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Forbidden</H1>
<H2>Error 403</H2>
</BODY>
</HTML>

The issue appears to be that libgdata doesn't support the GData Calendar API version 3 (bug #664353).  California relies on libgdata for probing Google Calendar for the user's calendars and CalDAV endpoints.  Once added to EDS, libgdata is not used for those calendars.

Note that Evolution has the same issue (403 FORBIDDEN when attempting to list Google Calendars).

It looks like the old versions of the Google Calendar GData API were discontinued on November 17, 2014, hence why this is only an issue now:

http://googleappsupdates.blogspot.com/2014/06/calendar-gdata-api-google-calendar.html
Comment 1 Matej Moško 2014-12-14 18:27:13 UTC
Same problem for me. Using ubuntu 14.04 LTS and california v. 0.1.4. It is not possible to connect to google calendar.
Comment 2 Adam Dingle 2014-12-21 17:20:16 UTC
I'm seeing this too.

As a workaround, if you add a Google Calendar in Evolution then it will show up in California.
Comment 3 Jim Nelson 2014-12-22 20:01:36 UTC
Are you able to add it with Evolution?  When I try to add a Google Calendar in Evolution, I get the 403 error there as well.
Comment 4 Adam Dingle 2014-12-22 20:04:41 UTC
I can only add a Google Calendar indirectly in Evolution, by choosing New -> Mail Acount and adding the corresponding Gmail account. When I do that, there's a checkbox that says something like "Also add calendar", which causes the calendar to be added as well.  After that, the calendar is visible in California as well as in Evolution.
Comment 5 Jim Nelson 2014-12-22 20:08:23 UTC
Right, you can add an email's default calendar that way, but you can't add other calendars (i.e. calendars which have been shared with the account, secondary calendars created for the account).
Comment 6 Jim Nelson 2014-12-22 21:41:16 UTC
*** Bug 741515 has been marked as a duplicate of this bug. ***
Comment 7 Jim Nelson 2014-12-29 22:31:21 UTC
The problem has been ticketed with EDS: bug #741922
Comment 8 Jesse Cooke 2015-03-26 16:50:07 UTC
I was able to add both Gmail and Google Apps calendars to California via Evolution. When I removed the Google Apps acct from Evolution the associated calendar was removed from California too. I assume both apps use the same local data store.
Comment 9 Jim Nelson 2015-03-26 19:09:16 UTC
> I assume both apps use the same local data store.

That's correct.  Both use Evolution Data Server (EDS).
Comment 10 Rick 2015-05-18 08:52:29 UTC
Well, I updated my EDS to the most recent available to openSUSE but still no luck.

If it helps, I get this in debug:

(california:7047): e-data-server-CRITICAL **: e_source_registry_ref_builtin_calendar: assertion 'source != NULL' failed

(california:7047): e-data-server-CRITICAL **: e_source_registry_ref_default_calendar: assertion 'E_IS_SOURCE (source)' failed


when I launch California with 2 calendars added in Evolution (one is the main Google calendar).
Comment 11 André Klapper 2019-10-10 14:01:48 UTC
California is not under active development anymore and saw its last non-cosmetic code changes in March 2016: https://gitlab.gnome.org/Archive/california/commits/master

Its codebase has been archived in https://gitlab.gnome.org/Archive/california/issues/1

Closing this report as WONTFIX as part of GNOME Housekeeping to reflect reality. Please feel free to reopen this ticket if anyone takes the responsibility for active development again.

You may want to use `gnome-calendar`.