Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5005

Root Resource lists child Resource paths incorrecty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • JCR Resource 2.5.0
    • JCR Resource 2.5.2
    • ResourceResolver
    • None
    • AEM 6.1 running JCR Resource 2.5.0 on MongoMK.

    Description

      The following code appears to generate incorrect paths that when given to other bundles that dont expect messy paths causes problems.

      Iterator<Resource>  i = resourceResolver.getResource("/").listChildren();
      while(i.hasNext()) {
        LOGGER.info("Child Path {} ",i.next().getPath());
      }
      

      Produces

      ...
      //etc
      ...
      /content
      ...
      /libs
      

      The // on some of the root resources causes issues.
      Might be Oak related.

      Attachments

        Issue Links

          Activity

            People

              ianeboston Ian Boston
              ianeboston Ian Boston
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: