Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46B49D484 for ; Tue, 31 Jul 2012 13:09:36 +0000 (UTC) Received: (qmail 61853 invoked by uid 500); 31 Jul 2012 13:09:36 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 61815 invoked by uid 500); 31 Jul 2012 13:09:36 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 61757 invoked by uid 99); 31 Jul 2012 13:09:36 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2012 13:09:36 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id EC0041404B4 for ; Tue, 31 Jul 2012 13:09:35 +0000 (UTC) Date: Tue, 31 Jul 2012 13:09:35 +0000 (UTC) From: "angela (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <75211865.121251.1343740175968.JavaMail.jiratomcat@issues-vm> In-Reply-To: <215806252.121235.1343740054627.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (OAK-213) Misleading exception message in NodeImpl#getParent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OAK-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425742#comment-13425742 ] angela commented on OAK-213: ---------------------------- in addition the jcr API defines the following behavior that isn't met by the current implementation: * @throws ItemNotFoundException if this Item is the root node * of a workspace. * @throws AccessDeniedException if the current session does not have * sufficent access to retrieve the parent of this item. > Misleading exception message in NodeImpl#getParent > -------------------------------------------------- > > Key: OAK-213 > URL: https://issues.apache.org/jira/browse/OAK-213 > Project: Jackrabbit Oak > Issue Type: Bug > Reporter: angela > Priority: Minor > > NodeImpl#getParent throws an exception with the following message if > the underlying NodeDelegate doesn't expose the parent node: > throw new ItemNotFoundException("Root has no parent"); > the parent might be null if it is not accessible and a null return > value doesn't necessarily indicate that the current node is the root node. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira