[
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