jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1731) Session.checkPermission("/", "add_node") throws PathNotFoundException instead of AccessControlException
Date Wed, 10 Sep 2008 20:33:44 GMT
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
    Affects Versions: core 1.4.5
            Reporter: Tobias Bocanegra


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.


Mime
View raw message