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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2014/02/20 11:35:19 UTC

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

Davide Giannella created OAK-1441:
-------------------------------------

             Summary: o.a.j.o.api.Tree 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


It's possible to access hidden nodes by using the Tree 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)