You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2014/02/20 15:10:20 UTC

[jira] [Resolved] (OAK-1441) o.a.j.o.api.Tree/Root allows access to hidden nodes

     [ https://issues.apache.org/jira/browse/OAK-1441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig resolved OAK-1441.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.17a

Fixed http://svn.apache.org/r1570185

> o.a.j.o.api.Tree/Root allows access to hidden nodes
> ---------------------------------------------------
>
>                 Key: OAK-1441
>                 URL: https://issues.apache.org/jira/browse/OAK-1441
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Davide Giannella
>            Assignee: Michael Dürig
>             Fix For: 0.17a
>
>
> It's possible to access hidden nodes by using the Tree/Root class.
> Using something like 
> {code}
> o.a.j.o.a.Root root = ...;
> Tree hidden = root.getTree("/oak:index/test-index/:index");
> for(Tree t : hidden.getChildren()){
>    System.out.println(t);
> }
> {code}
> will dump something like
> {code}
> /oak:index/test-index/:index/value049: { :next = , test = { ... } }
> /oak:index/test-index/:index/value009: { :next = value010, test = { ... } }
> /oak:index/test-index/:index/value046: { :next = value047, test = { ... } }
> /oak:index/test-index/:index/value045: { :next = value046, test = { ... } }
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)