Author: thomas.heute(a)jboss.com
Date: 2008-10-27 06:53:44 -0400 (Mon, 27 Oct 2008)
New Revision: 12178
Modified:
branches/JBoss_Portal_Branch_2_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
Log:
JBPORTAL-2212 - Uploading an archive fails on the slave node
Modified:
branches/JBoss_Portal_Branch_2_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2008-10-27
10:51:07 UTC (rev 12177)
+++
branches/JBoss_Portal_Branch_2_7/core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java 2008-10-27
10:53:44 UTC (rev 12178)
@@ -1078,9 +1078,9 @@
// check if the current item is a form field or an uploaded file
if (!item.isFormField())
{
- InputStream is = item.getInputStream();
+ byte[] archiveBytes = item.get();
- Command storearchiveCMD =
CMSService.getCommandFactory().createAsyncStoreArchiveCommand(CMSService, sPath, is,
sLanguage);
+ Command storearchiveCMD =
CMSService.getCommandFactory().createAsyncStoreArchiveCommand(sPath, archiveBytes,
sLanguage);
CMSService.execute(storearchiveCMD);
List messages = new ArrayList();
Show replies by date