Russ Leong wrote:
> Hi,
> I have the following permissions in the Permissions table
>
> Object - /
> Subject - root
> Action - /actions
> Inheritable - 1
> Negative - 0
>
> Which means root has access to folder "/" for all actions under "/actions"
> recursive because Inheritable = 1. If my understanding is wrong please
> correct me.
>
> I tried to check the permission using :
> ---------------------
> NamespaceAccessToken nat = Domain.accessNamespace(new SecurityToken(""),
> "slide");
> Security security = nat.getSecurityHelper();
> System.out.println("root actions? "+security.hasPermission(new
> SubjectNode("/"), new SubjectNode("root"), new ActionNode("/actions")));
> System.out.println("root Read? "+security.hasPermission(new
> SubjectNode("/"), new SubjectNode("root"), new
> ActionNode("/actions/read")));
>
> Can someone tell me why both returned false? What is the correct way to
> check for permissions? Note that I have turned off security and so there
> should be no need for authentication. Thanks.
>
> Russ
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
root user subjectNode URI is /users/root, not root
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>