You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2015/08/28 17:11:45 UTC

[jira] [Commented] (SLING-4962) getNodes() always returns empty iterator for root node

    [ https://issues.apache.org/jira/browse/SLING-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14719326#comment-14719326 ] 

Robert Munteanu commented on SLING-4962:
----------------------------------------

Patch applied in https://svn.apache.org/r1698347 , thanks a lot for the submission!

> getNodes() always returns empty iterator for root node
> ------------------------------------------------------
>
>                 Key: SLING-4962
>                 URL: https://issues.apache.org/jira/browse/SLING-4962
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing JCR Mock 1.1.8
>            Reporter: Andrew Khoury
>            Assignee: Robert Munteanu
>             Fix For: Testing JCR Mock 1.1.10
>
>         Attachments: fix-root-getNodes.patch
>
>
> session.getRootNode().getNodes() always returns an empty iterator even when there are nodes in the MockJcr session.
> For example in the below code, s.getRootNode.getNodes().hasNext() returns false:
> {code:none}
> Session s = JcrMock.newSession();
> s.getRootNode().addNode("foo");
> s.getRootNode.getNodes().hasNext()
> {code}
> I attached a patch containing a test case and a fix.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)