Santiago García Pimentel created SLING-10483:
------------------------------------------------

             Summary: Incorrect mapping is returned when a resourceResolver.map 
is called with aliases
                 Key: SLING-10483
                 URL: https://issues.apache.org/jira/browse/SLING-10483
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
    Affects Versions: Resource Resolver 1.7.8
            Reporter: Santiago García Pimentel


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 :
{quote}resourceResolver.map("/content/uw/ecrm/germany/www/*dealias/homealias/laundryalias*")
{quote}
I get
{quote}/content/uw/ecrm/germany/www/*de*/homealias/laundryalias
{quote}
 

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 seem to work fine now



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to