jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guo Zhenhua <jen...@gmail.com>
Subject Access control in Jackrabbit
Date Tue, 15 Dec 2009 05:16:27 GMT
I want to register new node types and add new nodes into jackrabbit
repository. I use the default credential.

I got following exception:
javax.jcr.AccessDeniedException: Access denied
    at org.apache.jackrabbit.core.security.simple.SimpleAccessManager.checkPermission(SimpleAccessManager.java:138)
    at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1468)
    at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java:2074)
    at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1979)
    at org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl$BatchImpl$1.run(RepositoryServiceImpl.java:1360)
    at org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl$BatchImpl.executeGuarded(RepositoryServiceImpl.java:1576)
    at org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl$BatchImpl.addNode(RepositoryServiceImpl.java:1349)
    at org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.visit(WorkspaceManager.java:862)
    at org.apache.jackrabbit.jcr2spi.operation.AddNode.accept(AddNode.java:70)
    at org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.execute(WorkspaceManager.java:820)
    at org.apache.jackrabbit.jcr2spi.WorkspaceManager$OperationVisitorImpl.access$500(WorkspaceManager.java:797)
    at org.apache.jackrabbit.jcr2spi.WorkspaceManager.execute(WorkspaceManager.java:594)
    at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.save(SessionItemStateManager.java:139)
    at org.apache.jackrabbit.jcr2spi.ItemImpl.save(ItemImpl.java:246)
    at org.apache.jackrabbit.jcr2spi.SessionImpl.save(SessionImpl.java:328)

I guess by default write permission is not granted to anonymous users.
How could I enable write privilege in Jackrabbit?

Gerald

Mime
View raw message