Henry Kuijpers created SLING-12937:
--------------------------------------

             Summary: Vanity: Upon multiple matches, allow picking the correct 
vanity path (and by default pick the first one)
                 Key: SLING-12937
                 URL: https://issues.apache.org/jira/browse/SLING-12937
             Project: Sling
          Issue Type: Improvement
          Components: ResourceResolver
    Affects Versions: Resource Resolver 1.12.12
            Reporter: Henry Kuijpers


ResourceResolverImpl (& MapEntries) handles incoming requests based on a 
certain order, however, it will choose the first matching path as the result. 
In case of a vanity, it does not take into account in which path / domain the 
vanity was configured. It could be that there will be 2 or even more hits for 
the same vanity.

In some setups we have 100+ websites hosted in AEM, which increases the chance 
of a duplicate vanity significantly. 

It would be nice to have a mechanism that by default chooses the first match, 
but can be influenced to make a better decision.

Given the nature of the code, it is not possible to match vanity paths with 
domains (as that context is not available). But it would be possible to let a 
project make a custom implementation to be able to choose something better.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to