Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Resolved
-
4.22
Description
The fragment of org.apache.xbean.finder.archive.JarArchive() constructor incorrectly resolves paths with exclamation signs:
if (jarPath.contains("!")) { jarPath = jarPath.substring(0, jarPath.indexOf("!")); u = new URL(jarPath); } jar = new JarFile(FileArchive.decode(u.getFile()));
where
E:/!IDE/Eclipse-JEE-2022-12-R/configuration/lib/javaagent-shaded.jar!/
turns into E:/ and causes FileNotFound exception failure.
Since exclamation sign(!) is a valid path character, jar file path should be cut by jarPath.lastIndexOf("!") or better(?) jarPath.toLowerCase().indexOf(".jar!") + 4
Attachments
Issue Links
- links to