Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7797

EARContentsDeployer creates the wrong name for modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.0.0.M3
    • 6.0.0.M2
    • Deployers
    • None

      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 /.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: