sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SLING-8335) StringIndexOutOfBoundsException from resolver.map with non absolute path
Date Thu, 25 Apr 2019 14:06:01 GMT

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

Karl Pauls closed SLING-8335.
-----------------------------

> StringIndexOutOfBoundsException from resolver.map with non absolute path
> ------------------------------------------------------------------------
>
>                 Key: SLING-8335
>                 URL: https://issues.apache.org/jira/browse/SLING-8335
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 1.6.8
>            Reporter: Ashok Kumar
>            Assignee: Karl Pauls
>            Priority: Major
>             Fix For: Resource Resolver 1.6.12
>
>         Attachments: StringIndexOutofBounds.patch
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> ResourceResolver.map("content/we-retail/us/en”) - Forward Mapping
> Steps to Reproduce : 
> 1. go to /system/console/jcrresolver console
> 2. input "content/we-retail/us/en" in Test
> 3. click map
> Output 
> it give out the error message -: java.lang.StringIndexOutOfBoundsException: String index
out of range: -1
>  
> [https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/master/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java#L770]
> {quote}final String pathInfo = absPath.substring(path.length());
> {quote}
> path = "/content/we-retail/us/en" whereas absPath = "content/we-retail/us/en"   ....
substring fails
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message