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 "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/11/22 22:05:35 UTC

[jira] [Resolved] (OAK-869) Runtime exception while adding node

     [ https://issues.apache.org/jira/browse/OAK-869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved OAK-869.
-------------------------------

    Resolution: Fixed

Actually we can resolve this issue as Fixed since the exception is already taken care of and follow up in OAK-928 for the remaining bits (handling of new properties, etc.).

> 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
>            Assignee: Jukka Zitting
>             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)