You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2012/07/31 15:07:33 UTC
[jira] [Created] (OAK-213) Misleading exception message in
NodeImpl#getParent
angela created OAK-213:
--------------------------
Summary: 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
[jira] [Resolved] (OAK-213) Misleading exception message in
NodeImpl#getParent
Posted by "angela (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OAK-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
angela resolved OAK-213.
------------------------
Resolution: Fixed
Fix Version/s: 0.4
Assignee: angela
fixed in Revision: 1367532
> 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
> Assignee: angela
> Priority: Minor
> Fix For: 0.4
>
>
> 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
[jira] [Commented] (OAK-213) Misleading exception message in
NodeImpl#getParent
Posted by "angela (JIRA)" <ji...@apache.org>.
[ 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 <code>Item</code> 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