Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-494

ZipArchieveInputStream component is throwing "Invalid Entry Size"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Not A Bug
    • 1.8, 1.18
    • None
    • None
    • None

    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:

       

      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)
      

      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.

      Attachments

        1. commons-compress-1.20-SNAPSHOT.jar
          611 kB
          Stefan Bodewig

        Activity

          People

            Unassigned Unassigned
            anveshmora Anvesh Mora
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: