jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Nash <nash.steve...@googlemail.com>
Subject folder creation problem
Date Thu, 15 Oct 2009 07:40:22 GMT
Hi All,

I am not able to create folder using the following code :

root = session.getRootNode();
root.addNode("testFolder", "nt:folder");
session.save();

It is throwing the error :
javax.jcr.AccessDeniedException: /testUser/testFolder/jcr:primaryType: not
allowed to modify item

Security configuration in repository.xml is as follows :

<Security appName="Jackrabbit">
        <!--
            security manager:
            class: FQN of class implementing the JackrabbitSecurityManager
interface
        -->
        <SecurityManager
class="org.apache.jackrabbit.core.DefaultSecurityManager"
workspaceName="security">
            <!--
            workspace access:
            class: FQN of class implementing the WorkspaceAccessManager
interface
            -->
            <!-- <param name="config" value="${rep.home}/security.xml"/> -->
        </SecurityManager>
        <AccessManager
class="org.apache.jackrabbit.core.security.DefaultAccessManager">
          <!--  <param name="config" value="${rep.home}/access.xml"/>-->
        </AccessManager>

      <LoginModule
class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
        <param name="anonymousId" value="anonymous"/>
        <param name="adminId" value="admin"/>
      </LoginModule>
</Security>

How can i create the folder using the above configuration of repository.xml
?

Thanks,
Steve

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