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

Support for split zip files

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.18
    • 1.20
    • Archivers

    Description

      It would be very useful to support splitted zip files. I've read https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT and understood that simply concatenating the segments and removing the split signature 0x08074b50 from first segment would be sufficient, but it is not that simple because compress fails with exception below:

      
      Caused by: java.util.zip.ZipException: archive's ZIP64 end of central directory locator is corrupt.
       at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory64(ZipFile.java:924) ~[commons-compress-1.18.jar:1.18]
       at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:901) ~[commons-compress-1.18.jar:1.18]
       at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:621) ~[commons-compress-1.18.jar:1.18]
       at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:295) ~[commons-compress-1.18.jar:1.18]
       at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:280) ~[commons-compress-1.18.jar:1.18]
       at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:236) ~[commons-compress-1.18.jar:1.18]
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lfcnassif Luís Filipe Nassif
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 14.5h
                14.5h