CalDAV allprop not working as expected

939 views Asked by At

I am using CalDAV server.

When I send following request:

curl --request PROPFIND  --user admin:admin --header "depth:0" --header "Content-Type: text/xml"  --data "<D:propfind xmlns:D='DAV:'><D:prop><D:allprop/></D:prop></D:propfind>" http://example/calendars/users/admin/calendar/

I get response as follows:

<?xml version='1.0' encoding='UTF-8'?>
<multistatus xmlns='DAV:'>
  <response>
    <href>/calendars/users/admin/calendar/</href>
    <propstat>
      <prop>
        <allprop/>
      </prop>
      <status>HTTP/1.1 404 Not Found</status>
    </propstat>
  </response>

If I understand correctly, CalDAV does support allprop as I looked at tutorials and examples.

If I change allprop to displayname or acl, it does work then.

Is allprop not supported or what is the new equivalent of allprop?

Or is my request bad?

1

There are 1 answers

1
Martin Prikryl On BEST ANSWER

Yes, your request is wrong.

The request, as you have it, is asking for a property allprop.

What you want to do is:

<D:propfind xmlns:D='DAV:'><D:allprop/></D:propfind>

Refer to the RFC 2518 section 8.1.2 Example - Using allprop to Retrieve All Properties