You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Mole (JIRA)" <ji...@apache.org> on 2016/10/28 12:10:58 UTC

[jira] [Created] (COMPRESS-367) ZipArchiveInputStream.getNextZipEntry() should differentiate between "invalid entry encountered" and "no more entries"

Michael Mole created COMPRESS-367:
-------------------------------------

             Summary: ZipArchiveInputStream.getNextZipEntry() should differentiate between "invalid entry encountered" and "no more entries"
                 Key: COMPRESS-367
                 URL: https://issues.apache.org/jira/browse/COMPRESS-367
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.12
            Reporter: Michael Mole
            Priority: Minor
             Fix For: 1.13


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)