jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: Setting up Access Control
Date Wed, 14 Sep 2011 12:02:55 GMT
On 14.09.11 11:06, "Francisco Carriedo Scher" <fcarriedos@gmail.com<mailto:fcarriedos@gmail.com>>
            // else node already has a policy, get that one
            acl = (AccessControlList) aMgr.getPolicies(path)[0];

Executing the code above i get  the following exception (caused by the code above highlighted
in red colour):

java.lang.ArrayIndexOutOfBoundsException: 0

Yes, this means getPolicies() returns an empty array, and that is probably the case when using
the SimpleAccessManager.

        <SecurityManager class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"

This is not the 2.x default configuration… this should be the DefaultSecurityManager. See
[0]. Where did you get your repository.xml from?

        <LoginModule class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">

Same, here, you want the DefaultLoginModule.

[0] http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/repository.xml


Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message