Bug#811601: owncloud: Consider adding redirects for well-known CardDAV and CalDAV URI

2016-02-26 Thread David Prévot
Hi Chris,

Le 26/02/2016 01:38, Chris a écrit :

> sorry just stumbled over this:

Thanks for providing additional information.

> On Wed, 3 Feb 2016 15:29:54 -0400 David =?iso-8859-1?Q?Pr=E9vot?=
>  wrote:
>> That’s why there are already the following rewrite in
>> /etc/owncloud/htaccess (symlinked from /usr/share/owncloud/.htaccess):
>>
>>   RewriteRule ^/owncloud/\.well-known/carddav /owncloud/remote.php/carddav/ 
>> [R=301,L]
>>   RewriteRule ^/owncloud/\.well-known/caldav /owncloud/remote.php/caldav/ 
>> [R=301,L]
> 
> The .well-known/* URLs needs to be at the top level of the installation
> like:
> 
>>   RewriteRule ^/\.well-known/carddav /owncloud/remote.php/carddav/
> [R=301,L]
>>   RewriteRule ^/\.well-known/caldav /owncloud/remote.php/caldav/ [R=301,L]
> 
> Clients are not expecting the .well-known in a subdir.

On the other hand, you can’t expect an .htaccess file from a subdir to
be used at all for a request on the top level. Now that I think again
about it, James, I assume you were referring to the
/etc/apache2/conf-available/owncloud.conf file (and not some file under
/etc/owncloud/ as I initially assumed).

I wonder if it will go in the way of some other webdav implementation,
I’ll look into it and will consider it for the next upload, thank you both.

Regards

David



signature.asc
Description: OpenPGP digital signature


Bug#811601: owncloud: Consider adding redirects for well-known CardDAV and CalDAV URI

2016-02-25 Thread Chris
Hi,

sorry just stumbled over this:

On Wed, 3 Feb 2016 15:29:54 -0400 David =?iso-8859-1?Q?Pr=E9vot?=
 wrote:
> That’s why there are already the following rewrite in
> /etc/owncloud/htaccess (symlinked from /usr/share/owncloud/.htaccess):
> 
>   RewriteRule ^/owncloud/\.well-known/carddav /owncloud/remote.php/carddav/ 
> [R=301,L]
>   RewriteRule ^/owncloud/\.well-known/caldav /owncloud/remote.php/caldav/ 
> [R=301,L]

The .well-known/* URLs needs to be at the top level of the installation
like:

>   RewriteRule ^/\.well-known/carddav /owncloud/remote.php/carddav/
[R=301,L]
>   RewriteRule ^/\.well-known/caldav /owncloud/remote.php/caldav/ [R=301,L]

Clients are not expecting the .well-known in a subdir.



Bug#811601: owncloud: Consider adding redirects for well-known CardDAV and CalDAV URI

2016-01-19 Thread James Valleroy
Package: owncloud
Severity: wishlist

Dear Maintainer,

Some CardDAV/CalDAV clients such as DAVdroid need the "well-known" service
discovery URIs to connect to an owncloud server. I found that DAVdroid
was able
to connect only after I added these lines to owncloud's apache conf:

Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav
Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav

Please consider adding these lines to the packaged owncloud.conf.

--
James




signature.asc
Description: OpenPGP digital signature