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

Support for ENHANCED_DEFLATED (Deflate64) in ZIP files

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16
    • Component/s: Archivers, Compressors
    • Labels:

      Description

      Some of the (large) ZIP files we try to process currently will throw this:

      UnsupportedZipFeatureException: unsupported feature method 'ENHANCED_DEFLATED' 
      

      which is a bummer since JDK's implementation also doesn't support Deflate64. This seems to be PKWare's extensions, although code to decrypt it exists in zlib (and is appropriately licensed, I believe).

      https://github.com/madler/zlib/tree/master/contrib/infback9

        Attachments

        1. input2
          3 kB
          Dawid Weiss
        2. archive.zip
          2 kB
          Dawid Weiss
        3. archive64.zip
          2 kB
          Dawid Weiss
        4. hello.world
          0.0 kB
          Dawid Weiss
        5. archive-deflate64.zip
          0.2 kB
          Dawid Weiss
        6. archive-deflate.zip
          0.2 kB
          Dawid Weiss
        7. compress-380.diff
          34 kB
          Christian Marquez Grabia

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dweiss Dawid Weiss
              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: