Hi Stefan,

it seems you have found out what I was unsure about. So Slide
currently does not support the <property> element. And if it does not
recognize it via the ACL method I strongly doubt you would have luck
by putting it in Domain.xml.

Regarding ACL it's a pity that Slide is lagging so much behind the
current working drafts, but the main developers are currently
concentrating on other specs, namely WebDAV Bindings.

Regards,
Ingo

> Thank you Ingo,
> with this sample I found that in the WebDAV spec too.
> 
> But unfortunately it doesn't work. I build a testcase using your
> sample. It produces a 400 Bad Request and logs the "helpful" message:
>   Error parsing requestBody:
>   null
> 
> By stepping through the code I found that
>   AclMethod.parsePrincipal()
> throws a JDomException with the message
>   "<principal> element must contain either a <href>, <all>, <self> or 
> <unauthenticated> element."
> 
> This message disappears but seems to be the problem: out <D:property> element
> is not recognized.
> 
> Do you know a way to setup such an owner permission in the Domain.xml file?
> 
> Thanks again,
> Stefan L�tzkendorf
> 
> 
> Ingo Brunberg wrote:
> > This is certainly possible. An ACL method to accomplish that task
> > would have something like the following as the request body:
> > 
> > <D:acl xmlns:D="DAV:">
> >   <!-- read and write privileges for all users -->
> >   <D:ace>
> >     <D:principal>
> >       <D:all/>
> >     </D:principal>
> >     <D:grant>
> >       <D:privilege> <D:read/> </D:privilege>
> >       <D:privilege> <D:write/> </D:privilege>
> >     </D:grant>
> >   </D:ace>
> > 
> >   <!-- manage permissions for the owner -->
> >   <D:ace>
> >     <D:principal>
> >       <D:property> <D:owner/> </D:property>
> >     </D:principal>
> >     <D:grant>
> >       <D:privilege> <D:read-acl/> </D:privilege>
> >       <D:privilege> <D:write-acl/> </D:privilege>
> >     </D:grant>
> >   </D:ace>
> > </D:acl>
> > 
> > Regards,
> > Ingo
> > 
> > 
> >>Hello,
> >>
> >>we are trying to setup the permissions on a collection to give
> >>all users read and write permissions and the owner (creator) of
> >>the resources in the collection the permission to manage (e.g.
> >>manage permissions).
> >>
> >>Is there a way to do that?
> >>
> >>thanks in advance.
> >>
> >>Stefan L�tzkendorf
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -- 
> +--------------------------------------------+
> |                                            |
> |  Stefan L�tzkendorf                        |
> |                                            |
> |  Institut f�r Terminologie und             |
> |  angewandte Wissensforschung (itaw) GmbH   |
> |                                            |
> |  Sitz: Am K�llnischen Park 6/7             |
> |        D-10179 Berlin                      |
> |  Mail: [EMAIL PROTECTED]          |
> |  Tel.: ++49 (030) 30 86 20 88              |
> |                                            |
> +--------------------------------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to