You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Marth (JIRA)" <ji...@apache.org> on 2013/11/07 15:07:18 UTC
[jira] [Updated] (OAK-869) Runtime exception while adding node
[ https://issues.apache.org/jira/browse/OAK-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Marth updated OAK-869:
------------------------------
Fix Version/s: 0.12
> 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
> Fix For: 0.12
>
> 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)