Thomas Mortagne created COMPRESS-187:
----------------------------------------
Summary: 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
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