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 763717 - Trouble connecting to ownCloud 9
Trouble connecting to ownCloud 9
Status: RESOLVED NOTGNOME
Product: gnome-online-accounts
Classification: Core
Component: general
3.18.x
Other All
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-03-15 20:12 UTC by W. Michael Petullo
Modified: 2016-05-08 03:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description W. Michael Petullo 2016-03-15 20:12:08 UTC
I am trying to use gnome-online-accounts to configure gnome-calendar and gnome-contacts to synchronize with an ownCloud server. I am using ownCloud 9.0, and I have my ownCloud installation available at https://www.example.com/share/.

Working my way through the Online Accounts capplet succeeds, and I end up with my ownCloud service listed along with some other accounts.

However, running gnome-calendar prints:

** (gnome-calendar:4794): WARNING **: source_credentials_required_cb: Failed to authenticate 'mike@www.example.com/share': HTTP Error: Not Found

I ran gnome-online-accounts in a debugger while I recreated the account settings. After entering "www.example.com/share", "username", and "password", I found the the variable uri pointed to "https://www.example.com/share" in goaowncloudprovider.c. This seems fine, but the error from gnome-calendar remains.

I did notice that CALDAV_ENDPOINT is set to "remote.php/caldav/" in goaowncloudprovider.c. I think ownCloud expects the URL "https://www.example.com/share/remote.php/dav/". Might this be a change in ownCloud 9 that breaks gnome-online-accounts? Is the non-standard installation path (i.e., /share vs. /owncloud) a problem?

How can I easily watch the request leaving gnome-calendar? It does not seem the gnome-calendar process itself makes the request, so I cannot merely strace or gdb gnome-calendar.
Comment 1 Ramon K. 2016-03-25 16:58:26 UTC
Same Problem here. The Installation-Path doesn't matter for gnome-online-accounts. Seems that the Caldav & Carddav path have been changed since owncloud 9. Hope a simple version-check in online-accounts can fix this issue. Maybe a second Menu-Item for owncloud 9 with different paths in the code is a easy solution to fix this. I have no Workaround yet.
Comment 2 Dries Decock 2016-03-30 06:01:32 UTC
Same issue here, after upgrading owncloud from 8.2 to 9.0

I believe this is an important issue to fix. Hope a fix is available soon.
Comment 3 Ramon K. 2016-03-30 06:24:51 UTC
(In reply to Ramon K. from comment #1)
> Same Problem here. The Installation-Path doesn't matter for
> gnome-online-accounts. Seems that the Caldav & Carddav path have been
> changed since owncloud 9. Hope a simple version-check in online-accounts can
> fix this issue. Maybe a second Menu-Item for owncloud 9 with different paths
> in the code is a easy solution to fix this. I have no Workaround yet.

I have figured out the following workaround to get contacts & calender working:
Added owncloud 9 Carddav & Caldav to Evolution, Contacts & Calendar will appear in Gnome-Contacts & Gnome-Calendar app.
Comment 4 Devin Williams 2016-04-13 14:37:19 UTC
The URLs for CardDAV and CalDAV access have changed in Owncloud 9.

Rather than:
   <servername>/owncloud/remote.php/carddav/
   <servername>/owncloud/remote.php/caldav/

The new URLs are the same:
   <servername>/owncloud/remote.php/dav/

My workaround is as follows:

After creating the account in online accounts, find the source information file in /home/<user>/.config/evolution/sources that corresponds to your OwnCloud account.  If you have multiple accounts configured, you may have to open each file until you find the OwnCloud source.

Edit the file, changing this:

[GNOME Online Accounts]
AccountId=account_1460556058_0
CalendarUrl=https://<user>@<server>/owncloud/remote.php/caldav/
ContactsUrl=https://<user>@<server>/owncloud/remote.php/carddav/

to:

[GNOME Online Accounts]
AccountId=account_1460556058_0
CalendarUrl=https://<user>@<server>/owncloud/remote.php/dav/
ContactsUrl=https://<user>@<server>/owncloud/remote.php/dav/

This fix allowed my calendar and contacts apps to work properly as well as Evolution.

It seems that GOA needs to somehow differentiate between versions and then set the URLs appropriately.
Comment 5 Dries Decock 2016-04-13 20:16:56 UTC
Seems to be solved with an upgrade to owncloud 9.0.1
Comment 6 Devin Williams 2016-04-14 12:19:48 UTC
Confirmed.  Updating to OwnCloud 9.0.1 did indeed solve the problem for me.
Comment 7 Debarshi Ray 2016-04-14 13:47:10 UTC
Just got it confirmed from #owncloud-dev on Freenode that old URLs should continue to work:

13:43 <rishi> Looks like oC 9 changed the CardDAV and CalDAV path to            
      <server>/remote.php/dav from <server>/remote.php/cardav or                
      <server>/remote.php/caldav.
13:44 <rishi> https://bugzilla.gnome.org/show_bug.cgi?id=763717
13:44 <rishi> Is this intentional?
13:44 * rishi doesn't have access to a oC 9 instance to check
13:44 <rishi> Oh, it looks like oc 9.0.1 changed it back to what it was         
      before.
13:45 <rishi> So, I guess it was not intentional after all. :)
13:45 <nickvergessen> old urls should still work
13:46 <rishi> Ah, ok.
13:46 <rishi> Thanks, nickvergessen
Comment 8 W. Michael Petullo 2016-05-08 00:48:11 UTC
Thank you!