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 "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/07/04 16:05:34 UTC
[jira] [Created] (OAK-166) Add Tree.isRoot() method instead of
relying on Tree.getParent() == null
Michael Dürig created OAK-166:
---------------------------------
Summary: Add Tree.isRoot() method instead of relying on Tree.getParent() == null
Key: OAK-166
URL: https://issues.apache.org/jira/browse/OAK-166
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Michael Dürig
Assignee: Michael Dürig
Access to through the parent node is problematic wrt. to access control. So instead of relying on {{Tree.getParent() == null}} to check for root, we should rather have a method {{Tree.isRoot()}}.
--
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-166) Add Tree.isRoot() method instead of
relying on Tree.getParent() == null
Posted by "Michael Dürig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OAK-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved OAK-166.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.4
Fixed at revision 1357271
> Add Tree.isRoot() method instead of relying on Tree.getParent() == null
> -----------------------------------------------------------------------
>
> Key: OAK-166
> URL: https://issues.apache.org/jira/browse/OAK-166
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Fix For: 0.4
>
>
> Access to through the parent node is problematic wrt. to access control. So instead of relying on {{Tree.getParent() == null}} to check for root, we should rather have a method {{Tree.isRoot()}}.
--
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