ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23602] - Zip task STILL creates zip files incompatible with Winzip
Date Wed, 29 Oct 2003 00:46:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23602>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23602

Zip task STILL creates zip files incompatible with Winzip





------- Additional Comments From tsorgie@yahoo.com  2003-10-29 00:46 -------
To try to get more info about this problem, i contacted the Winzip support 
group, and gave them access to the same sample files provided in my last post.

Their response seems to shine a little light on the issue:

Using a Hex editor, it appears to me these two Zip files contain the
same exact data set.  I do notice one difference between the two Zip
files.  The reported value in the "Size of the Central Directory" field
within the "End of Central Directory (PK0506)" differs between the two
Zip files. The Zip file called ANT141_ziptest.zip contains a value of
"6090 0F00", where as, the Zip file created with Apache Ant contains a
value of "9FBC B1FF".

I ran a quick test where I modified the value in the "Size of the
Central Directory" field for the Apache Ant created Zip file to mirror
the value found in ANT141_ziptest.zip. After the modification, I was
able to open the modified Apache Ant created Zip file with WinZip
without encountering any error messages.

For some reason, the Apache Ant program is placing an incorrect value 
in the
"Size of the Central Directory" field within the "End of Central 
Directory
(PK0506)".

Unlike other Zip utilities, WinZip begins reading a Zip file from the
last record (End of Central Directory) to the first record (Local File
header). Where as, other Zip utilities operate in a reverse fashion
(first to last).  This might explain why you were able to open the
Apache Ant created Zip file with some other Zip utilities, but not with
WinZip.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message