[
https://issues.apache.org/jira/browse/COMPRESS-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909936#comment-16909936
]
Stefan Bodewig commented on COMPRESS-480:
-----------------------------------------
After I fixed COMPRESS-482 {{ZipArchiveInputStream}} decompressed the inner
{{xpi}} as I expected. With COMPRESS-483 implemented the master branch (and
1.19 once it has been released) throw a more useful exception.
> Unexpected record signature when using ZipArchiveInputStream
> ------------------------------------------------------------
>
> Key: COMPRESS-480
> URL: https://issues.apache.org/jira/browse/COMPRESS-480
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.18
> Reporter: Luboš Doležel
> Priority: Major
> Labels: zip
>
> I'm trying to use ZipArchiveInputStream for reading a [Firefox
> APK|https://www.dropbox.com/s/u725t87sew5b539/firefox-65-0-1.apk?dl=0]. I
> cannot use ZipFile (although the example below _could_) and I'm aware of the
> limitations.
> The file makes use of "stored entries with data descriptor".
> This code example triggers an exception:
> {code}
> ZipArchiveInputStream zis = new ZipArchiveInputStream(new
> FileInputStream(apk), "UTF-8", false, true);
> while (zis.getNextZipEntry() != null);
> {code}
> This is the exception reported: {{Unexpected record signature: 0X4374756F}}
> Could it possibly be fixed or is this ZIP file impossible to read using
> ZipArchiveInputStream?
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)