Bug 314711 - DAV groupware resource uses legacy URL for ownCloud
Summary: DAV groupware resource uses legacy URL for ownCloud
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: 4.10
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 20:26 UTC by Thomas Tanghus
Modified: 2013-03-15 21:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Tanghus 2013-02-08 20:26:58 UTC
The DAV groupware resource uses the old paths /apps/calendar/caldav.php and /apps/contacts/carddav.php instead of the "new" /remote.php/caldav/ and /remote.php/carddav/

The old paths will most likely stop working from ownCloud 5.

Reproducible: Always

Steps to Reproduce:
1. Create a DAV groupware resource and select 'ownCloud'
2. Enter hostname and installation path

Actual Results:  
The paths generated are the old ones

Expected Results:  
The paths should be generated using /remote.php/
Comment 1 Thomas Tanghus 2013-02-28 02:13:36 UTC
(In reply to comment #0)
> The old paths will most likely stop working from ownCloud 5.

To reaffirm this: The old URIs *will* be deprecated and unusable from ownCloud 5:

https://github.com/owncloud/core/issues/243#issuecomment-14122273
Comment 2 Frank Karlitschek 2013-02-28 09:20:40 UTC
I want to confirm the issue Thomas reported. The Akonadi/ownCloud integration will stop working with ownCloud 5 if it's not ported to the new URLs.

It would be great if someone would look into that.

Frank
Comment 3 Allen Winter 2013-03-15 20:07:08 UTC
but what happens if someone is using OwnCloud version less than 5?

Is this diff in kdepim-runtime what you want us to change?
diff --git a/resources/dav/services/owncloud.desktop b/resources/dav/services/owncloud.desktop
index 265ac19..cf7708f 100644
--- a/resources/dav/services/owncloud.desktop
+++ b/resources/dav/services/owncloud.desktop
@@ -43,5 +43,5 @@ Type=Service
 X-KDE-ServiceTypes=DavGroupwareProvider
 
 X-DavGroupware-SupportedProtocols=CalDav,CardDav
-X-DavGroupware-CalDavPath=/apps/calendar/caldav.php
-X-DavGroupware-CardDavPath=/apps/contacts/carddav.php
+X-DavGroupware-CalDavPath=/remote.php/caldav/
+X-DavGroupware-CardDavPath=/remote.php/carddav/
~
Comment 4 Grégory Oestreicher 2013-03-15 20:42:45 UTC
Looks like there's an issue with saved searches, this is not the first bug that doesn't appear in one and that I discover by finally reading my mails… Sorry for not responding earlier.

I think it'd be better to have another service description file, but as I understand things this would go through i18n, which delays integration until 4.11, so year changing owncloud.desktop is the quicker way.

I can take care of this, and will create a new service file for older ownclouds.

Cheers,
Grégory
Comment 5 Grégory Oestreicher 2013-03-15 20:52:25 UTC
Git commit 56993ef28c8b9c746185c363ed12ac9d1c95aa4c by Grégory Oestreicher.
Committed on 15/03/2013 at 21:48.
Pushed by goestreicher into branch 'KDE/4.10'.

Update ownCloud URLs

The previous ones are no longer supported for ownCloud > 5.
They'll be re-introduced in a separate service file for older
versions.
FIXED-IN: 4.10.2

M  +2    -2    resources/dav/services/owncloud.desktop

http://commits.kde.org/kdepim-runtime/56993ef28c8b9c746185c363ed12ac9d1c95aa4c
Comment 6 Thomas Tanghus 2013-03-15 21:24:13 UTC
(In reply to comment #3)
> but what happens if someone is using OwnCloud version less than 5?

The new URLs have been used since ownCloud 4.

(In reply to comment #5)
> FIXED-IN: 4.10.2 

Awesome, thanks :)