You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ashok Kumar (JIRA)" <ji...@apache.org> on 2019/04/03 06:25:00 UTC
[jira] [Updated] (SLING-8341) unexpected results from
resourceresolver.map when input path has adjacent '/'
[ https://issues.apache.org/jira/browse/SLING-8341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ashok Kumar updated SLING-8341:
-------------------------------
Description:
Scenario : - ResourceResolver.map(‘/content/we-retail/us*//*en.html’) results in ‘/content/we-retail/us/enn.html’
Steps to Reproduce :
1. Go to console /system/console/jcrresolver
2. input link "/content/we-retail/us//en.html" to Configuration Test
3. click map
4. the result shows
Output
Primary: /content/we-retail/us/enn.html. Other candidates: /content/we-retail/us//en.html.
Questions: - How to handle such input gracefully
what should be the output - throw an exception and exit OR return the original path itself OR automatically remove adjacent slashes and replace that with single '/'
was:
ResourceResolver.map(‘/content/we-retail/us*//*en.html’) results in ‘/content/we-retail/us/enn.html’
Steps to Reproduce :
1. Go to console /system/console/jcrresolver
2. input link "/content/we-retail/us//en.html" to Configuration Test
3. click map
4. the result shows
Output
Primary: /content/we-retail/us/enn.html. Other candidates: /content/we-retail/us//en.html.
> unexpected results from resourceresolver.map when input path has adjacent '/'
> -----------------------------------------------------------------------------
>
> Key: SLING-8341
> URL: https://issues.apache.org/jira/browse/SLING-8341
> Project: Sling
> Issue Type: Bug
> Components: ResourceResolver
> Affects Versions: Resource Resolver 1.6.8
> Reporter: Ashok Kumar
> Priority: Major
>
> Scenario : - ResourceResolver.map(‘/content/we-retail/us*//*en.html’) results in ‘/content/we-retail/us/enn.html’
> Steps to Reproduce :
> 1. Go to console /system/console/jcrresolver
> 2. input link "/content/we-retail/us//en.html" to Configuration Test
> 3. click map
> 4. the result shows
> Output
> Primary: /content/we-retail/us/enn.html. Other candidates: /content/we-retail/us//en.html.
>
> Questions: - How to handle such input gracefully
> what should be the output - throw an exception and exit OR return the original path itself OR automatically remove adjacent slashes and replace that with single '/'
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)