You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Nicolas Richeton <ni...@smile.fr> on 2004/05/28 16:57:18 UTC

Acl problem with Slide 2.0

Hi,

I'm using Slide 2.0 and I've several problems when I grant or revoke permissions using a webdav client (a custom one and slide-webdavclient)
Slide is running on 2 servers : (Tomcat 5.0.24/win and tomcat 5.0.24/linux)
acl_inheritance_type is set to 'path' (default value)

1 - Inherited flag unused :
When I create a new permission on a collection using the client lib, i noticed that slide seems to ignore the "inherited" flag. Even if i use setInherited( false), inherited is always set to true in the server's metadata (store/metadata/ ???.def.xml).
I checked deeper in Slide code, and i found that slide doesn't even try to read this flag, and always set inherited to true :
org.apache.slide.webdav.method.AclMethod
line 158 : NodePermission np = new NodePermission(objectUri, subjectUri, actionUri, true, negative);

2 - Some kind of acl corruption, similar to the one described in this mail : http://www.mail-archive.com/slide-user@jakarta.apache.org/msg05618.html :
I set a permission using slide client ( read on /slide/files/test/  to /users/me) and I display the acl. Everything is OK, inherited permissions are here, and my perm is not inherited. Then, i do ls /slide/files/test/, it displays the content of test, it's OK. Then I display the acl one more time : the permission has changed and is now inherited from /slide/files/test, and the client is unable to delete it. ( it can't delete a perm inherited from another collection, and the perm is inherited from itself).

3 - If i try to revoke or grant a permission when the acl is corrupted (using aces = findAclMethod then aclmethod( aces ) ) All previous permissions are removed. I checked using eclipse that i call aclmethod with an array containing the same acls that I read but none of them is used. Same thing using the client.


Here are my questions :
-Are these problems corrected on the CVS HEAD ?
-Did I missed something in the configuration files or misunderstood the use of the inherited flag ?
-Is anybody successfully using a webdav client to set up slide permissions ? (I have to do it this way)

Thanks

-- 
Nicolas Richeton




 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Acl problem with Slide 2.0

Posted by Michael Smith <ms...@speedlegal.com>.
Nicolas Richeton wrote:
> Hi,
> 
> I'm using Slide 2.0 and I've several problems when I grant or revoke permissions using a webdav client (a custom one and slide-webdavclient)
> Slide is running on 2 servers : (Tomcat 5.0.24/win and tomcat 5.0.24/linux)
> acl_inheritance_type is set to 'path' (default value)
> 
> 1 - Inherited flag unused :
> When I create a new permission on a collection using the client lib, i noticed that slide seems to ignore the "inherited" flag. Even if i use setInherited( false), inherited is always set to true in the server's metadata (store/metadata/ ???.def.xml).
> I checked deeper in Slide code, and i found that slide doesn't even try to read this flag, and always set inherited to true :
> org.apache.slide.webdav.method.AclMethod
> line 158 : NodePermission np = new NodePermission(objectUri, subjectUri, actionUri, true, negative);

That's correct. The ACL protocol doesn't have any way to specify this. 
The reason it _looks_ like it does in the client library is because this 
library shares the relevant objects between requests and responses - and 
the protocol does allow a response to say "this ACE is inherited".

I'm not sure what's going on with the other problem(s) you describe, but 
this one isn't a bug.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org