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

ZipArchiveInputStream fails to call setSize() when reading archives created by ZipArchiveOutputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • None
    • None

    Description

      ZipArchiveInputStream fails to call setSize() when reading archives created by ZipArchiveOutputStream

      I'm not exactly sure where the problem is - looks to be something to do with:

      getNextZipEntry(){
      ...
      if (!hasDataDescriptor) {
      // calls setSize()
      } else {
      // does not call setSize()
      }
      

      Maybe the DataDescriptor is not being processed, or maybe there is no descriptor and the flag is set wrongly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: