Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-427

ZipFile.getEntries() returns WinZip entries separated by backslash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.10, 1.15
    • None
    • Archivers
    • None

    Description

      Archives created by WinZip on Windows 10 display recurring COMPRESS-176 behaviour, with a new twist.

      Attached example archive is created by latest WinZip version 22 build 12663.
      It may have been experienced also for WinZip version 18 build 10661 on Windows 10.

      ZipFile.getEntries() for the attached example zip archive return the list of entries with the following ZipArchiveEntry.getName():

      test/
      test\\file — mdash.txt
      test/ä.txt
      test/sub/
      test/sub\\file — mdash2.txt
      test/sub\\ä2.txt
      

      ZipArchiveEntry.getPlatform() was essential for the COMPRESS-176 workaround.
      It returns 0 for all entries in the example archive, except for two entries containing mdash. Those return 11.

      Tested with version 1.10 and updating to current 1.15.
      The backslash names seem to originate in the Unicode extra fields.

      Attachments

        1. mdash-and-umlaut.zip
          1 kB
          Yana Lebedeva

        Activity

          People

            Unassigned Unassigned
            yana.lebedeva Yana Lebedeva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: