jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-869) Runtime exception while adding node
Date Tue, 05 Nov 2013 17:21:18 GMT

    [ https://issues.apache.org/jira/browse/OAK-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814056#comment-13814056
] 

Michael Dürig commented on OAK-869:
-----------------------------------

It certainly seems so. At least {{org.apache.jackrabbit.oak.jcr.security.authorization.WriteTest#testWriteOnParentWithNoReadePriv}}
passes now for me. We should probably remove the {{@Ignore}} and resolve this issue. 

> Runtime exception while adding node
> -----------------------------------
>
>                 Key: OAK-869
>                 URL: https://issues.apache.org/jira/browse/OAK-869
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Antonio Sanso
>         Attachments: AddChildTest.java
>
>
> Trying to add a node where the user has not read permission ends up in a runtime exception

> java.lang.IllegalStateException: This tree does not exist
> 	at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
> 	at org.apache.jackrabbit.oak.core.TreeImpl.checkExists(TreeImpl.java:453)
> 	at org.apache.jackrabbit.oak.core.TreeImpl.setProperty(TreeImpl.java:347)
> 	at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.internalAddChild(NodeDelegate.java:508)
> 	at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.addChild(NodeDelegate.java:462)
> 	at org.apache.jackrabbit.oak.jcr.NodeImpl$5.perform(NodeImpl.java:256)
> 	at org.apache.jackrabbit.oak.jcr.NodeImpl$5.perform(NodeImpl.java:1)
> 	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:97)
> 	at org.apache.jackrabbit.oak.jcr.ItemImpl.perform(ItemImpl.java:95)
> 	at org.apache.jackrabbit.oak.jcr.NodeImpl.addNode(NodeImpl.java:217)
> 	at org.apache.jackrabbit.oak.jcr.NodeImpl.addNode(NodeImpl.java:203)
> 	at org.apache.jackrabbit.oak.benchmark.AddChildTest.runTest(AddChildTest.java:71)
> 	at org.apache.jackrabbit.oak.benchmark.AbstractTest.execute(AbstractTest.java:146)
> 	at org.apache.jackrabbit.oak.benchmark.AddChildTest.execute(AddChildTest.java:1)
> 	at org.apache.jackrabbit.oak.benchmark.AbstractTest.runTest(AbstractTest.java:115)
> 	at org.apache.jackrabbit.oak.benchmark.AbstractTest.run(AbstractTest.java:84)
> 	at org.apache.jackrabbit.oak.benchmark.AddChildTest.run(AddChildTest.java:1)
> 	at org.apache.jackrabbit.oak.benchmark.BenchmarkRunner.main(BenchmarkRunner.java:114)
> It would be better to have a checked excpetion instead e.g. javax.jcr.AccessDeniedException
> I will attach test to reproduce the issue



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message