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

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

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

David Mollitor (Jira)

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

Anvesh Mora updated COMPRESS-494:
---------------------------------
    Description:
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}

  was:
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 it here. But I can add  more information as discussion on this begins:

 
{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}


> 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
>            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}



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