It passes the result of this calculation to ModuleMetaData.setFileName():
private String earRelativePath(String earPath, String pathName)
{ StringBuilder tmp = new StringBuilder(pathName); tmp.delete(0, earPath.length()); return tmp.toString(); }That will include a leading /, e.g.
foo.ear/bar.war
will have a ModuleMetaData with name "/bar.war". It should be "bar.war".
This impacts the processing done as part of JBAS-7644.
EARStructure has the same flaw, but the "earRelativePath" is passed to VirtualFile.getChild(earRelativePath) which ignores the leading /.
- blocks
-
JBAS-7644 Enforce EE 6 module name requirements within an application
- Closed