[
http://jira.jboss.com/jira/browse/JBPORTAL-1146?page=comments#action_1237... ]
Antoine Herzog commented on JBPORTAL-1146:
------------------------------------------
Hi,
Thanks...
When I worked on this part, a few mounth ago, I did a enhanced export featured :
- it allow to export with managing the locales of the files, so to export/import without
taking care of "what locale",
- and save the title, description... so this can be restored at the import
- it store the extra information in some properties files, inside the zip, and the import
manage to retrieve the things and restore the files in the cms
- it is build on the same way the export/import works... just added features in some
inherited/copied class.
- the gui is using some similar/modified jsp... but the choice of one/several locale is
not done (all locales always...or only one).
it was working on 2.4.1, but did not tested it on 2.6 (I am migrating things little by
little on this new version).
if you think it is of any interest, I can provide all the stuff... for integration in the
portal.
but I can do this only on a "as is" basis : just take the things out of my
project, and send it.
(I have a huge work to do, first priority, for at least the end of august ... and then the
end of the year... so can't contribute more with arranging and preparing the package
for easy integration.)
java.lang.NegativeArraySizeException in uploading zip archive
-------------------------------------------------------------
Key: JBPORTAL-1146
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1146
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal CMS
Affects Versions: 2.4 Final
Environment: Windows XP / JBP 2.4
Reporter: Antoine Herzog
Assigned To: Sohil Shah
Fix For: 2.8 Final, 2.4.2 Final, 2.6.2 Final
Attachments: StoreArchiveCommand.java
Original Estimate: 2 hours
Remaining Estimate: 2 hours
when uploading an archive file, there is an exception :
java.lang.NegativeArraySizeException
at
org.jboss.portal.cms.impl.jcr.command.StoreArchiveCommand.execute(StoreArchiveCommand.java:72)
at org.jboss.portal.cms.impl.jcr.JCRCommand.dispatch(JCRCommand.java:61)
It is because of the zipEntry.getSize() that return -1 (unknown size).
this is because of the use of ZipInputStream class.
there is a turnaround with using the ZipFile class instead.
see :
http://forum.java.sun.com/thread.jspa?threadID=492219&messageID=2316626
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira