[jboss-user] [JBoss Portal] - Re: upload zip archive bug : NegativeArraySizeException

2006-12-04 Thread [EMAIL PROTECTED]
I've spent the better part of today playing with this, and researching it... There doesnt seem to be a resolution, just that java's zipinputstream cant read non-standard zips. This is actually a pretty good site and info: http://mindprod.com/jgloss/zip.html Of course... The following code won

[jboss-user] [JBoss Portal] - Re: upload zip archive bug : NegativeArraySizeException

2006-11-28 Thread Antoine_h
I am working on this right now. yes, I've seen it is a bit more complicated... I have tried it this way : FileItem item = (FileItem) itr.next(); | ZipFile zipFile = new ZipFile(item.getName()); in the CMSAdminPortlet code (a copy of it). and it seems to work. the FileItem javadoc says getName(

[jboss-user] [JBoss Portal] - Re: upload zip archive bug : NegativeArraySizeException

2006-11-28 Thread [EMAIL PROTECTED]
I dont think the workaround will help here, because whats being passed in is the inputstream from the fileupload. The zipfile class expects a File, so am not sure yet on how to deal with this, but it seems like a definite "bug" that needs to be fixed. View the original post : http://www.jbos

[jboss-user] [JBoss Portal] - Re: upload zip archive bug : NegativeArraySizeException

2006-11-28 Thread Antoine_h
the jira is : http://jira.jboss.com/jira/browse/JBPORTAL-1146 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989425#3989425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989425 _