shared xDAV resources

Dilyan Palauzov Dilyan.Palauzov at aegee.org
Wed Jul 11 17:27:20 EDT 2018


Hello,

> Any idea what happens, when /dav/calendars is returned in calendar-home-set?

To answer my own question:

This returns a lot of output:
curl -XPROPFIND -u myself:password -H'Depth: infinity'  
-H"Content-Type: application/xml; charset='utf-8'" --data "  
<D:propfind xmlns:D='DAV:'>
     <D:allprop/>
    </D:propfind>" https://server/dav/calendars/user/myself/

This returns:
curl -XPROPFIND -u myself:password -H'Depth: infinity'  
-H"Content-Type: application/xml; charset='utf-8'" --data "  
<D:propfind xmlns:D='DAV:'>
     <D:allprop/>
    </D:propfind>" https://server/dav/calendars/user/

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
   <D:response>
     <D:href>/dav/calendars/user/</D:href>
     <D:propstat>
       
<D:prop><D:getcontentlength></D:getcontentlength><D:getcontenttype>text/calendar;  
charset=utf-8</D:getcontenttype><D:resourcetype><D:collection/></D:resourcetype></D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
   <D:propstat>
      
<D:prop><D:creationdate/><D:displayname/><D:getcontentlanguage/><D:getetag/><D:getlastmodified/><D:lockdiscovery/><D:supportedlock/><CS:getctag/></D:prop>
     <D:status>HTTP/1.1 404 Not Found</D:status>
   </D:propstat>
   </D:response>
</D:multistatus>

As a reminder, to what resource refers 404, if the requested URL is 200 OK?

Finally there is this output:
curl -XPROPFIND -u myself:password -H'Depth: infinity'  
-H"Content-Type: application/xml; charset='utf-8'" --data "  
<D:propfind xmlns:D='DAV:'>
     <D:allprop/>
    </D:propfind>" https://server/dav/calendars/

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
<D:response>
   <D:href>/dav/calendars/</D:href>
    
<D:propstat><D:prop><D:getcontentlength></D:getcontentlength><D:getcontenttype>text/calendar;  
charset=utf-8</D:getcontenttype><D:resourcetype><D:collection/></D:resourcetype></D:prop>
    <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   <D:propstat>
      
<D:prop><D:creationdate/><D:displayname/><D:getcontentlanguage/><D:getetag/><D:getlastmodified/><D:lockdiscovery/><D:supportedlock/><CS:getctag/></D:prop>
      <D:status>HTTP/1.1 404 Not Found</D:status>
   </D:propstat>
   </D:response>
</D:multistatus>

Since /dav/calendars/user/me is not contained in /dav/calendars/user,  
which is not contained in /dav/calendars, returning /dav/calendars in  
CALDAV:calendar-home-set will not work.  But tweaking cyrus imapd to  
return the content of /dav/calendars and /dav/calendars/* could help.

Greetings
   Дилян



More information about the Cyrus-devel mailing list