[ 
https://issues.apache.org/jira/browse/SLING-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated SLING-5671:
-----------------------------------
    Description: 
The following resource structure:
{code}
/etc/map
  + http
    + localhost:80
      + mappedpath
      - sling:internalRedirect="/content/some/path"
{code}

leads to the following entry being listed in the outwards (mapping) map (inside 
{{/system/console/jcrresolver}})
{code}
^/content/some/path/  http://localhost/mappedpath/  external: 302
{code}

That entry applies to links towards that path even if the request was done on 
port 4502. Even worse, it will lead to URLs like 
{{http://localhost/mappedpath/....}} being generated with 
{{ResourceResolver.map(...)}}.

  was:
If you have the following resource structure:
{code}
/etc/map
  + http
    + localhost:80
      + mappedpath
      - sling:internalRedirect="/content/some/path"
{code}

leads to the following entry being listed in the outwards (mapping) map (inside 
{{/system/console/jcrresolver}})
{code}
^/content/some/path/  http://localhost/mappedpath/  external: 302
{code}

That entry applies to links towards that path even if the request was done on 
port 4502. Even worse, it will lead to URLs like 
{{http://localhost/mappedpath/....}} being generated with 
{{ResourceResolver.map(...)}}.


> Not matching port in the mapping entry still uses the mapping for the outward 
> mapping (used in ResourceResolver.map)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5671
>                 URL: https://issues.apache.org/jira/browse/SLING-5671
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 1.4.10
>            Reporter: Konrad Windszus
>
> The following resource structure:
> {code}
> /etc/map
>   + http
>     + localhost:80
>       + mappedpath
>       - sling:internalRedirect="/content/some/path"
> {code}
> leads to the following entry being listed in the outwards (mapping) map 
> (inside {{/system/console/jcrresolver}})
> {code}
> ^/content/some/path/  http://localhost/mappedpath/  external: 302
> {code}
> That entry applies to links towards that path even if the request was done on 
> port 4502. Even worse, it will lead to URLs like 
> {{http://localhost/mappedpath/....}} being generated with 
> {{ResourceResolver.map(...)}}.



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

Reply via email to