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

Jukka Zitting reassigned JCR-1731:
----------------------------------

    Assignee: Jukka Zitting

> Session.checkPermission("/", "add_node") throws PathNotFoundException instead 
> of AccessControlException
> -------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1731
>                 URL: https://issues.apache.org/jira/browse/JCR-1731
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-core, security
>    Affects Versions: core 1.4.5
>            Reporter: Tobias Bocanegra
>            Assignee: Jukka Zitting
>             Fix For: core 1.4.6
>
>
> When invoking Session.checkPermission("/", "add_node"), a 
> PathNotFoundException is thrown:
> Exception in thread "main" javax.jcr.PathNotFoundException: no such ancestor 
> path of degree 1
>       at 
> org.apache.jackrabbit.spi.commons.name.PathFactoryImpl$PathImpl.getAncestor(PathFactoryImpl.java:443)
>       at 
> org.apache.jackrabbit.core.SessionImpl.checkPermission(SessionImpl.java:710)
>       at Test.main(Test.java:35)
> i assume that getAncestor(1) used to return null in an earlier version.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to