You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Peter Alfred Lee (Jira)" <ji...@apache.org> on 2019/12/19 03:23:00 UTC

[jira] [Commented] (COMPRESS-494) ZipArchieveInputStream component is throwing "Invalid Entry Size"

    [ https://issues.apache.org/jira/browse/COMPRESS-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16999709#comment-16999709 ] 

Peter Alfred Lee commented on COMPRESS-494:
-------------------------------------------

I believe you are misunderstanding the metadata [~anveshmora].

I think [~bodewig] is asking for the Local File Header and Central Directory Entry(also called as Central Directory Header or Central File Header).

I believe it would be a little difficult to understand them if you are not familiar with zip specification([https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT]).

If you don't understand what does the Local File Header and Central Directory Entry mean, then I think it would be much easier if you could share the zip file.

> ZipArchieveInputStream component is throwing "Invalid Entry Size"
> -----------------------------------------------------------------
>
>                 Key: COMPRESS-494
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-494
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.8, 1.18
>            Reporter: Anvesh Mora
>            Priority: Critical
>
> I've observed in my development in certain zip files which we are able to extract with with unzip utility on linux is failing with our Compress library.
>  
> As of now I've stack-trace to share, I'm gonna add more in here as on when discussion begins on this:
>  
> {code:java}
> Caused by: java.lang.IllegalArgumentException: invalid entry size
>         at org.apache.commons.compress.archivers.zip.ZipArchiveEntry.setSize(ZipArchiveEntry.java:550)
>         at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.readDataDescriptor(ZipArchiveI
> nputStream.java:702)
>         at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.bufferContainsSignature(ZipArc
> hiveInputStream.java:805)
>         at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.readStoredEntry(ZipArchiveInpu
> tStream.java:758)
>         at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.readStored(ZipArchiveInputStre
> am.java:407)
>         at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.read(ZipArchiveInputStream.jav
> a:382)
> {code}
> I missed to add version info, below are those:
> version of lib I'm using is: 1.9
> And I did try version 1.18, issue is observed in this version too.



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