[ 
https://issues.apache.org/jira/browse/COMPRESS-621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved COMPRESS-621.
--------------------------------------
    Fix Version/s: 1.23
       Resolution: Fixed

> ZipFile does not support prepending additional data to the zip content
> ----------------------------------------------------------------------
>
>                 Key: COMPRESS-621
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-621
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.21
>            Reporter: Glavo
>            Priority: Major
>             Fix For: 1.23
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> In general, Zip files support placing arbitrary content before their body 
> without affecting their compliance.
> Here is an example:
> [https://github.com/huanghongxun/HMCL/releases/download/v3.5.2.218/HMCL-3.5.2.218.exe]
>  
> This is actually a jar file, but we prepend an exe launcher to it, so it can 
> be used both as a jar and as an exe.
> java.util.zip.ZipFile can open and read it normally, but 
> org.apache.commons.compress.archivers.zip.ZipFile can open it but cannot read 
> any entries.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to