[
https://issues.apache.org/jira/browse/COMPRESS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Lundberg moved SANDBOX-259 to COMPRESS-3:
------------------------------------------------
Component/s: (was: Compress)
Key: COMPRESS-3 (was: SANDBOX-259)
Project: Commons Compress (was: Commons Sandbox)
> COMPRESS-REDESIGN: Handle JarArchiveInputStream null getNextEntry() gracefully
> ------------------------------------------------------------------------------
>
> Key: COMPRESS-3
> URL: https://issues.apache.org/jira/browse/COMPRESS-3
> Project: Commons Compress
> Issue Type: Bug
> Environment: N/A
> Reporter: Tim Pinet
> Assignee: Torsten Curdt
> Attachments: JarArchiveInputStream.patch, JarTestCase.patch
>
> Original Estimate: 10h
> Remaining Estimate: 10h
>
> When the method JarArchiveInputStream.getNextEntry() is called after the
> final archive entry was already returned, an Exception is thrown. This is due
> to the request to the super class ZipArchiveInputStream.getNextEntry()
> returning null which denotes the archive is at the end. However that null is
> used to attempt to try to create a new JarArchiveEntry(null) instance. It is
> here where the exception is thrown. I suggest doing a quick null check then
> return null if the archive has been fully traversed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.