[cosmo-dev] RFC4791 HTTP REPORT and Cosmo

Randy Letness randy at osafoundation.org
Mon Aug 18 17:54:51 PDT 2008


Sam Halliday wrote:
>
> I've tried this request against my home collection (/dav/myusername/) 
> on Chandler Hub with "Depth: 1" and it doesn't return anything. I've 
> even tried it against one of my collections 
> (/dav/mysername/mycollectionname) and still nothing, the response is 
> always
>
> ==============
> <?xml version="1.0" encoding="UTF-8"?>
> <D:multistatus xmlns:D="DAV:"/>
> ==============
>
> Any ideas? Is there something I'm missing in the request?
>

I've tried this REPORT (Depth 1) against a calendar collection and it 
seems to work.  The calendar-filter you are using only matches VTODOs 
that do not have a COMPLETED property AND have a STATUS property that is 
not equal to the text "CANCELLED".  Since cosmo does not use STATUS, 
this won't match notes created in cosmo.  I changed the filter by 
removing the second prop-filter that matches STATUS and it correctly 
returns the VTODOS without COMPLETED.


> Also, the PROPFIND option you are referring to... do you have any 
> example requests? This is not covered well in the RFC.

For example you can do something like:

curl -u user:pass -X PROPFIND -H "Depth: 1" -H "Content-Type: text/xml" 
--data-ascii "<D:propfind 
xmlns:D=\"DAV:\"><D:prop><D:resourcetype></D:resourcetype></D:prop></D:propfind>" 
http://localhost:8080/chandler/dav/username

and examine the results for each collection that has the C:calendar prop.

-Randy



More information about the cosmo-dev mailing list