[
https://issues.apache.org/jira/browse/OAK-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angela resolved OAK-206.
------------------------
Resolution: Fixed
Fix Version/s: 0.4
Assignee: angela
> RootImpl#getTree relies on accessibility of all intermediate trees
> ------------------------------------------------------------------
>
> Key: OAK-206
> URL: https://issues.apache.org/jira/browse/OAK-206
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: angela
> Assignee: angela
> Fix For: 0.4
>
>
> as explained in OAK-205 the currently implementation of Root#getTree
> relies on the assumption that all intermediate trees are accessible:
> TreeImpl child = rootTree;
> for (String name : elements(path)) {
> child = child.getChild(name);
> if (child == null) {
> return null;
> }
> }
> return child;
> this might not be the case once we have permissions enforced in oak-core.
> we may either fix that on the API level (see OAK-205) which apart from
> making the oak-api permission sensitive would be quite convenient to use
> in oak-jcr...
> for the time being we should fix the current implementation to use an
> implementation specific access method on TreeImpl.
--
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