You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Bodewig (JIRA)" <ji...@apache.org> on 2012/06/03 17:31:22 UTC

[jira] [Resolved] (COMPRESS-187) ZipArchiveInputStream and ZipFile don't produce equals ZipArchiveEntry instances

     [ https://issues.apache.org/jira/browse/COMPRESS-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved COMPRESS-187.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

should be fixed with svn revision 1345687
                
> ZipArchiveInputStream and ZipFile don't produce equals ZipArchiveEntry instances
> --------------------------------------------------------------------------------
>
>                 Key: COMPRESS-187
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-187
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.4
>            Reporter: Thomas Mortagne
>             Fix For: 1.5
>
>
> I'm trying to use a ZipArchiveEntry coming from ZipArchiveInputStream that I stored somwhere for later with a ZipFile and it does not work.
> The reason is that it can't find the ZipArchiveEntry in the ZipFile entries map. It is exactly the same zip file but both entries are not equals so the Map#get fail.
> As far as I can see the main difference is that {{comment}} is null in ZipArchiveInputStream while it's en empty string in ZipFile. I looked at ZipArchiveInputStream and it looks like the comment (whatever it is) is simply not parsed while I can find some code related to the comment at the end of ZIipFile#readCentralDirectoryEntry.
> Note that java.util.zip does not have this issue. Did not checked what they do but the zip entries are equals.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira