commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Mole (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COMPRESS-367) ZipArchiveInputStream.getNextZipEntry() should differentiate between "invalid entry encountered" and "no more entries"
Date Fri, 28 Oct 2016 12:10:58 GMT
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)

Mime
View raw message