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 Wong Kam Lai <kl...@onk.cintec.cuhk.edu.hk> on 2003/04/29 06:06:49 UTC
Inherited field in permissions table
When I add a permission, I first create a Ace object by
ace=new Ace(principal,negative,protect,inherited,null);
where, except prinicpal, all are 'false'
However, after running webdavResource.aclMethod(path, aces);
Mysql database has updated with the request permission but the inherited
field is set to 'true', Before running this statement, I've make sure that
every aces[i] has set inherited to false. How can I really insert the
permission with inherited set to false?
Best Regards,
Kam-Lai Wong
Project Engineer
The Chinese NewsML Community
Center for Innovation and Technology
The Chinese University of Hong Kong
TEL:(852)-26098205
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org
Re: Inherited field in permissions table
Posted by Michael Smith <ms...@speedlegal.com>.
Wong Kam Lai wrote:
> When I add a permission, I first create a Ace object by
>
> ace=new Ace(principal,negative,protect,inherited,null);
> where, except prinicpal, all are 'false'
> However, after running webdavResource.aclMethod(path, aces);
> Mysql database has updated with the request permission but the inherited
> field is set to 'true', Before running this statement, I've make sure that
> every aces[i] has set inherited to false. How can I really insert the
> permission with inherited set to false?
>
You cannot do this through webdav. The webdav ACL specification has many
severe limitations - though it's quite powerful for querying existing
ACLs, it's extremely limited in how you can specify ACLs to set in the
ACL method. Slide chooses to make all ACEs set through this method
inheritable, since there's no way for the client to specify the desired
ACL semantics for this sort of thing.
Your only option is to write some java code (possibly as a servlet -
it's your choice) that uses the slide low-level API to set the ACL you want.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org