[jira] [Work logged] (COMPRESS-477) Support for splitted zip files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Work logged] (COMPRESS-477) Support for splitted zip files

Bruno P. Kinoshita (Jira)

     [ https://issues.apache.org/jira/browse/COMPRESS-477?focusedWorklogId=340883&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-340883 ]

ASF GitHub Bot logged work on COMPRESS-477:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Nov/19 03:58
            Start Date: 09/Nov/19 03:58
    Worklog Time Spent: 10m
      Work Description: PeterAlfreadLee commented on issue #84: COMPRESS-477 Add support for extracting splitted zip files
URL: https://github.com/apache/commons-compress/pull/84#issuecomment-552063435
 
 
   Just pushed some code to modify a minor bug:
   The zip split signature (0x08074B50) will only show up at the beginning of the first zip split segment, not every segment. So we should only validate if the first zip split segment is begun with split signature(0x08074B50).
   
   BTW:
   I have finished the code of building a split zip. I hope I can push my PR when this PR of extracting split zip is merged, because I want to write some testcases for the building of split zip.
   It's not easy to test a split zip in linux because the Zip command line tool only support constructing a split zip, not extracting them(I have to admit that this amazed me) and 7z in linux doesn't support split zip.
   I have no idea how can I test my constructed split zip in linux(on the other hand it's OK in Windows). If you have any ideas about it, I would highly appreciate it if you can teach me about it. @bodewig   :-)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 340883)
    Time Spent: 2h 50m  (was: 2h 40m)

> Support for splitted zip files
> ------------------------------
>
>                 Key: COMPRESS-477
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-477
>             Project: Commons Compress
>          Issue Type: New Feature
>          Components: Archivers
>    Affects Versions: 1.18
>            Reporter: Luís Filipe Nassif
>            Priority: Major
>              Labels: zip
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> 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:
> {code}
> 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]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)