You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/07/03 22:18:36 UTC
[Bug 53503] New: Zip archives cannot be opened by Winzip if more
than 65535 entries are present
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Priority: P2
Bug ID: 53503
Assignee: notifications@ant.apache.org
Summary: Zip archives cannot be opened by Winzip if more than
65535 entries are present
Severity: normal
Classification: Unclassified
OS: Windows XP
Reporter: sebb@apache.org
Hardware: PC
Status: NEW
Version: unspecified
Component: Compress Antlib
Product: Ant
This was triggered by problems with OpenOffice.org source zip archives, see:
https://issues.apache.org/ooo/show_bug.cgi?id=120132
Ant 1.8.4 zip task creates an invalid zip archive when more than 65535 entries
(files/folders) are included in the archive.
The zip files are still usable with 7-Zip, but cannot be used with Winzip, and
WindowsZP compressed folders does not like them either.
The same set of files can be compressed with 7-Zip and Winzip will read the
archive.
In fact the same set of files can be compressed using Commons Compress (trunk)
and Winzip can read the archive.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Version|1.9.1 |1.8.4
Resolution|--- |FIXED
--- Comment #4 from Stefan Bodewig <bo...@apache.org> ---
zip64 support is there in Ant 1.9.x and it will fail if the number of entries
exceeds the limits of "vanilla" zip while zip64 extensions are disabled.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Antoine Levy-Lambert <an...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.9.0 |1.9.1
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
--- Comment #1 from Sebb <se...@apache.org> ---
Created attachment 29029
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29029&action=edit
Build file to create test zips
The attached Ant build file can be used to create various test zip files from a
set of dummy files.
ant create - create a directory containing 65536 files in 256 folders
ant zip - create zip files:
test1.zip - all files; shows as 256 files in WinXP tooltip
test2.zip - exactly 65536 entries - shows empty in WinZip and WinXP
test3.zip - exactly 65535 entries - works OK in WinZip and Win/XP
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #3 from Sebb <se...@apache.org> ---
As far as I can tell, this restriction is not documented.
Also, even if the code cannot be fixed without using Java 5, Ant 1.8.x could
perhaps warn users if tbe count of entries exceeded 65535.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|Compress Antlib |Core tasks
Version|unspecified |1.8.4
Resolution|--- |FIXED
Target Milestone|--- |1.9.0
--- Comment #2 from Stefan Bodewig <bo...@apache.org> ---
Your example uses the built-in zip task and not the Compress Antlib[1], the
later is based on Commons Compress and should work for you.
What you see is Ant's lack of Zip64 support.
I've merged the Zip64 changes made to Commons Compress to Ant's trunk, so it
works there as well. Since the changes require Java5 they could not go into
any 1.8.x release.
[1] http://ant.apache.org/antlibs/compress/index.html
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 53503] Zip archives cannot be opened by Winzip if more than
65535 entries are present
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53503
Antoine Levy-Lambert <an...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.8.4 |1.9.0
--
You are receiving this mail because:
You are the assignee for the bug.