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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.12
    • 1.13
    • Archivers
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: