Author: thomas.heute(a)jboss.com
Date: 2008-10-27 06:49:57 -0400 (Mon, 27 Oct 2008)
New Revision: 12176
Modified:
modules/cms/trunk/cms-jackrabbit/src/test/java/org/jboss/portal/cms/test/commands/TestFileArchiveUpload.java
Log:
JBPORTAL-2212 - Uploading an archive fails on the slave node
Modified:
modules/cms/trunk/cms-jackrabbit/src/test/java/org/jboss/portal/cms/test/commands/TestFileArchiveUpload.java
===================================================================
---
modules/cms/trunk/cms-jackrabbit/src/test/java/org/jboss/portal/cms/test/commands/TestFileArchiveUpload.java 2008-10-27
10:49:32 UTC (rev 12175)
+++
modules/cms/trunk/cms-jackrabbit/src/test/java/org/jboss/portal/cms/test/commands/TestFileArchiveUpload.java 2008-10-27
10:49:57 UTC (rev 12176)
@@ -79,7 +79,8 @@
try
{
is =
IOTools.safeBufferedWrapper(Thread.currentThread().getContextClassLoader().getResourceAsStream(this.sZipFile));
- Command storearchiveCMD =
service.getCommandFactory().createStoreArchiveCommand("", is, "en");
+ byte[] archiveBytes = IOTools.getBytes(is);
+ Command storearchiveCMD =
service.getCommandFactory().createStoreArchiveCommand("", archiveBytes,
"en");
service.execute(storearchiveCMD);
}
finally
Show replies by date