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

Incorrect mapping is returned when a resourceResolver.map is called with all its aliases

    XMLWordPrintableJSON

    Details

      Description

      I think this might be related to https://issues.apache.org/jira/browse/SLING-10432

      When you have a path in which several nodes have some alias, resourceResolver.map(path) will return the wrong result in some cases.

      before SLING-10432 was fixed this happen more often, now the problem is reduced, but persist.

      eg.

      I have a path /content/uw/ecrm/germany/www/de/home/laundry

      of those de, home and laundry have aliases (dealias,homealias & laundryalias, respectively).

      when calling :

      resourceResolver.map("/content/uw/ecrm/germany/www/dealias/homealias/laundryalias")

      I get

      /content/uw/ecrm/germany/www/de/homealias/laundryalias

       

      Note de instead of dealias. 

      It only happens when all map receives only aliases, then the first segment with alias is not used. i.e. if I remove the alias from de, homealias would then not be used

       

      calling rr.map() with just some of the paths using aliases, it seems to work fine now

        Attachments

          Activity

            People

            • Assignee:
              rombert Robert Munteanu
              Reporter:
              santiagozky Santiago García Pimentel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m