DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-02-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |1.6.3




--- Additional Comments From [EMAIL PROTECTED]  2005-02-18 14:16 ---
Should be fixed now, please verify with a nightly build of 2005-02-19 or later.

Kev, your patch would miss files with a compressed size > 2GB.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-02-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 AssignedTo|[EMAIL PROTECTED]  |[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2005-02-18 13:37 ---
The field inside of a ZIP local or central file header is four bytes long, so 
the
ZIP format can't store files larger than 4GB itself.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310





--- Additional Comments From [EMAIL PROTECTED]  2005-01-31 11:29 ---

> The ZipEntry class doesn't support sizes larger than 4Gb ( -> Dec), so
> the patch will provide support for files upto this limit imposed by the API, 
but
> not larger files.

Nice catch, so the patch is ok for current API ! Sorry, didn't go far enough in 
the docs...



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310





--- Additional Comments From [EMAIL PROTECTED]  2005-01-31 11:22 ---
(In reply to comment #2)
> Well i thought of the same patch, but then you'll have the same bug for files 
> larger then 4GB :(
> The size won't be negative, but won't be the good neither, no ?

Hmm, I suppose so.
Just reading the docs...

setSize

public void setSize(long size)

Sets the uncompressed size of the entry data.

Parameters:
size - the uncompressed size in bytes 
Throws:
IllegalArgumentException - if the specified size is less than 0 or
greater than 0x bytes
See Also:
getSize()

The ZipEntry class doesn't support sizes larger than 4Gb ( -> Dec), so
the patch will provide support for files upto this limit imposed by the API, but
not larger files.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310





--- Additional Comments From [EMAIL PROTECTED]  2005-01-31 11:08 ---
Well i thought of the same patch, but then you'll have the same bug for files 
larger then 4GB :(
The size won't be negative, but won't be the good neither, no ?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 33310] - Zip task can't zip files larger than 2GB (2^31 bytes int limit reached) : "invalid entry size"

2005-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33310





--- Additional Comments From [EMAIL PROTECTED]  2005-01-31 11:00 ---
Created an attachment (id=14139)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=14139&action=view)
Overrides ZipEntry.setSize() to check value of input

When the value is negative, assumes that the call to deflator has wrapped round
(32bit precision error) and converts the value into a meaningful long.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]