https://bz.apache.org/bugzilla/show_bug.cgi?id=63115
Bug ID: 63115
Summary: JSP standalone compilation doesn't work. First folder
in path is duplicate
Product: Tomcat 9
Version: 9.0.14
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
In org.apache.jasper.JsjC class
the method "scanFilesInternal" use "context.getResourcePaths(input)" method to
retrieve all resources available in "input" folder.
but all the paths returned by this method start with the value contains in
"input" variable.
Then, scanFilesInternal iterate other all paths returned and call
scanFilesInternal again (recursivity) for each of then.
But, the value contains in "input" variable is concatenate with the current
path (which already start with the value contains in "input"). So, the first
part of the path is duplicated.
example:
private void scanFilesInternal(String input) { <= input = /jsp/
Set<String> paths = context.getResourcePaths(input); <= paths
[/jsp/home/,/jsp/actu/..]
...
scanFilesInternal(input.substring(0, input.length() -1) + path);
=> scanFilesInternal("/jsp"+"/jsp/home/")<= /jsp/ appears twice!!
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]