You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2019/08/09 15:35:00 UTC
[jira] [Resolved] (COMPRESS-480) Unexpected record signature when
using ZipArchiveInputStream
[ https://issues.apache.org/jira/browse/COMPRESS-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved COMPRESS-480.
-------------------------------------
Resolution: Won't Fix
{{ZipArchiveInputStream}} really doesn't stand any chance of reading this archive. Using {{ZipFile}} is the only approach that can work.
With COMPRESS-483 we stand a chance of detecting the situation where the stord entry with data descriptor is a ZIP archive and throw a more useful exception. I will use this opportunity to stress the problem in our docs even stronger than we've done so far.
> Unexpected record signature when using ZipArchiveInputStream
> ------------------------------------------------------------
>
> Key: COMPRESS-480
> URL: https://issues.apache.org/jira/browse/COMPRESS-480
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.18
> Reporter: Luboš Doležel
> Priority: Major
>
> 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)