GNOME Bugzilla – Bug 763717
Trouble connecting to ownCloud 9
Last modified: 2016-05-08 03:45:39 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.
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.
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.
(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.
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.
Seems to be solved with an upgrade to owncloud 9.0.1
Confirmed. Updating to OwnCloud 9.0.1 did indeed solve the problem for me.
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
Thank you!