Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 76416 invoked from network); 23 Sep 2008 15:06:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Sep 2008 15:06:07 -0000 Received: (qmail 17440 invoked by uid 500); 23 Sep 2008 15:06:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 17064 invoked by uid 500); 23 Sep 2008 15:06:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 17053 invoked by uid 99); 23 Sep 2008 15:06:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 08:06:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 15:05:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 28957234C1E3 for ; Tue, 23 Sep 2008 08:05:46 -0700 (PDT) Message-ID: <1457002105.1222182346165.JavaMail.jira@brutus> Date: Tue, 23 Sep 2008 08:05:46 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1731) Session.checkPermission("/", "add_node") throws PathNotFoundException instead of AccessControlException In-Reply-To: <81385125.1221078824515.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting resolved JCR-1731. -------------------------------- Resolution: Fixed Fixed in revision 698201. > 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.