Subject: [caldav] About the expected outcome for “acl-principal-prop-set” element

From: George Jor <[email-masked]>
Date: Fri, 25 Oct 2013 07:00:28 +0000

Hi all,

My company and I are currently implementing some test cases about ACL Reports, but it is hard for us to render proper response that meets the expected outcome of the test cases.

Here is the request body:
<?xml version="1.0" encoding="utf-8" ?>
<D:acl-principal-prop-set xmlns:D="DAV:">
<D:prop>
<D:displayname/>
</D:prop>
</D:acl-principal-prop-set>

But what is expect to get according to the test case is the following:
                  <test name='6' ignore='no'>
<description>Valid report</description>
<request print-response='no'>
<method>REPORT</method>
<ruri>$calendarpath1:/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/CalDAV/aclreports/1.xml</filepath>
</data>
<verify>
<callback>multistatusItems</callback>
<arg>
<name>prefix</name>
<value></value>
</arg>
<arg>
<name>okhrefs</name>
<value>$principaluri1:</value>
<value>$principaluri1:calendar-proxy-read/</value>
<value>$principaluri1:calendar-proxy-write/</value>
<value>$principaluri_admin:</value>
</arg>
</verify>
</request>
</test>

According to the RFC 3744's example, the expected outcome should be:

<?xml version="1.0" encoding="utf-8" ?>
   <D:multistatus xmlns:D="DAV:">
     <D:response>
       <D:href>http://www.example.com/people/gstein</D:href>
       <D:propstat>
         <D:prop>
           <D:displayname>Greg Stein</D:displayname>
         </D:prop>
         <D:status>HTTP/1.1 200 OK</D:status>
       </D:propstat>
     </D:response>
     <D:response>
       <D:href>http://www.example.com/groups/authors</D:href>
       <D:propstat>
         <D:prop>
           <D:displayname>Site authors</D:displayname>
         </D:prop>
         <D:status>HTTP/1.1 200 OK</D:status>
       </D:propstat>
     </D:response>
   </D:multistatus>

But when i insert the following params to displayname tag:

"/principals/user/1/"

"/principals/user/1/calendar-proxy-read/"

"/principals/user/admin/"
"/principals/user/1/calendar-proxy-write/"

the case still cannot pass. Please help!

Thanks!

Best,

George Jor

Ribose Inc.

+=========================================================+

This message may contain confidential and/or privileged

information.  If you are not the addressee or authorized to

receive this for the addressee, you must not use, copy,

disclose or take any action based on this message or any

information herein.  If you have received this message in

error, please advise the sender immediately by reply e-mail

and delete this message.  Thank you for your cooperation.

+=========================================================+