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

ZipArchiveInputStream.getNextZipEntry() should differentiate between "invalid entry encountered" and "no more entries"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12
    • Fix Version/s: 1.13
    • Component/s: Archivers
    • Labels:
      None

      Description

      ZipArchiveInputStream.getNextZipEntry() currently returns null if an invalid entry is encountered. Thus, it's not possible to differentiate between "no more entries" and "invalid entry encountered" conditions.

      Instead, it should throw an exception if an invalid entry is encountered.

      I've created a test case and fix. I will submit a pull request shortly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikemole@gmail.com Michael Mole
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: