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

Davide Giannella updated OAK-1441:
----------------------------------

    Description: 
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}

  was:
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}

        Summary: o.a.j.o.api.Tree/Root allows access to hidden nodes  (was: 
o.a.j.o.api.Tree allows access to hidden nodes)

> 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
>
> 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)

Reply via email to