Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1638

tomee:exec on Windows produces invalid tomee.zip due to backslash directory separators

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.7.4, 7.0.0-M3
    • Component/s: TomEE Maven Plugin
    • Labels:
      None
    • Environment:
      Windows

      Description

      The tomee:exec target produces an invalid tomee.zip file within the standalone jar when run under Windows. This prevents the standalone jar from being run under Linux.

      This issue is caused by the use of platform directory separators in the Zip entry names rather than forward slashes. See section 4.4.17 at https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

      The offending code is in org.apache.openejb.maven.plugin.util.Zips. I have produced a fix and tested this stand-alone, but not in the context of the plugin.

        Attachments

        1. ExecRunner.java.patch
          2 kB
          David Eaves
        2. Zips.java
          2 kB
          David Eaves
        3. Zips.java.patch
          2 kB
          David Eaves
        4. ZipsTest.java
          2 kB
          David Eaves

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              david.eaves David Eaves
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: