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

Ian Boston commented on SLING-5005:
-----------------------------------

Does not happen in Sling quickstart, JCR Resource 2.5.7 with default runmode.

{code}
08.09.2015 09:28:54.292 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=rep:system, superType=null, 
path=/jcr:system
08.09.2015 09:28:54.293 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, path=/var
08.09.2015 09:28:54.294 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, 
path=/apps
08.09.2015 09:28:54.295 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=nt:file, superType=null, 
path=/gradient.png
08.09.2015 09:28:54.382 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=nt:file, superType=null, 
path=/index.html
08.09.2015 09:28:54.386 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=nt:file, superType=null, 
path=/signup.html
08.09.2015 09:28:54.389 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=nt:file, superType=null, 
path=/sling-logo.png
08.09.2015 09:28:54.394 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, 
path=/sling-test
08.09.2015 09:28:54.399 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=nt:file, superType=null, 
path=/sling.css
08.09.2015 09:28:54.402 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, path=/etc
08.09.2015 09:28:54.411 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, 
path=/sightly
08.09.2015 09:28:54.415 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
Returning Resource JcrNodeResource, type=sling:Folder, superType=null, 
path=/libs
08.09.2015 09:28:54.419 *DEBUG* [0:0:0:0:0:0:0:1 [1441700933922] GET 
/.explorer.item.html HTTP/1.1] 
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator seek: 
No more nodes, iterator exhausted
{code}

> Root Resource lists child Resource paths incorrecty
> ---------------------------------------------------
>
>                 Key: SLING-5005
>                 URL: https://issues.apache.org/jira/browse/SLING-5005
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: JCR Resource 2.5.0
>         Environment: AEM 6.1 running JCR Resource 2.5.0 on MongoMK.
>            Reporter: Ian Boston
>            Assignee: Ian Boston
>
> The following code appears to generate incorrect paths that when given to 
> other bundles that dont expect messy paths causes problems.
> {code}
> Iterator<Resource>  i = resourceResolver.getResource("/").listChildren();
> while(i.hasNext()) {
>   LOGGER.info("Child Path {} ",i.next().getPath());
> }
> {code}
> Produces
> {code}
> ...
> //etc
> ...
> /content
> ...
> /libs
> {code}
> The // on some of the root resources causes issues.
> Might be Oak related.



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

Reply via email to