joerghoh commented on code in PR #241:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/241#discussion_r4723181914


##########
src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java:
##########
@@ -436,7 +436,12 @@ private Resource resolveInternal(final RequestInfo 
request, String absPath) {
         Resource res = null;
         for (int i = 0; res == null && i < realPathList.length; i++) {
             final ParsedParameters parsedPath = new 
ParsedParameters(realPathList[i]);
-            final String realPath = parsedPath.getRawPath();
+            String realPath = parsedPath.getRawPath();
+
+            // an internal redirect to "/" results in a mapped path starting 
with "//"
+            while (realPath.startsWith("//")) {
+                realPath = realPath.substring(1);

Review Comment:
   I am not super confident with that change, because that actually means that 
there is a flaw in the ``parsedPath.getRawPath()`` logic, which returns double 
slashes, and I would rather fix the problem there.
   
   @orx0815 any chance that you can have a look there?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to