All,
I use webdav client lib to implement the permission management in slide, and use
command line provided with client lib to do some test.
The initial directory structure looks like following:
/
-- files
rootuser has the whole control to all resource, and user1 has no any permission
initially.
I create a folder named sub1 under files using rootuser, and grant
read,read-acl,write,write-acl,write-content actions on sub1 to user1.(Note: I don't
grant any actions to user1 on files folder). Then i can use cd files/sub1 to enter
the sub1 folder, and use acl to display the user1's permission.
/
--files
-- sub1
However, when I use 'mkcol sub2' under sub1, the Forbidden (403) error is thrown. I
don't know why the mkcol is forbidden since the write action has been granted to user1.
(the permission definition in sub1.def.xml is
<permissions>
<permission subjectUri="/users/user1" actionUri="/actions/read" inheritable="true"
negative="false" />
<permission subjectUri="/users/user1" actionUri="/actions/write" inheritable="true"
negative="false" />
</permissions>
Could anyone give me some suggestion?
thanks in advance.
regards
huyong