Rather than leaving it to the Resource implementation, and
potentially normalizing twice, we apply it once as part of the
initial processPath checks.
Closes gh-33689
@ -682,7 +682,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -682,7 +682,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
protectedStringprocessPath(Stringpath){
path=StringUtils.replace(path,"\\","/");
path=cleanDuplicateSlashes(path);
returncleanLeadingSlash(path);
path=cleanLeadingSlash(path);
returnnormalizePath(path);
}
privateStringcleanDuplicateSlashes(Stringpath){
@ -724,6 +725,21 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -724,6 +725,21 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -783,7 +799,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -783,7 +799,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator