glassfish
  1. glassfish
  2. GLASSFISH-20145

ScatteredArchive creates invalid ZIP entries on Windows

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2.2
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
      None
    • Environment:

      Windows 7
      Oracle JDK 1.6.0_34 (32 bit)

      Description

      On Windows, ScatteredArchive creates ZIP files with invalid entry names like WEB-INF\beans.xml instead of WEB-INF/beans.xml. ZIP entry path names are expected to contain forward slashes only.

      Suggested fix:

      Change org.glassfish.embeddable.archive.Assembler.transferDir() and insert a line

      entryName = entryName.replace(File.separatorChar, '/');

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Bhavanishankar
            Reporter:
            Harald Wellmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: