Author: bago
Date: Mon Jul 10 07:02:10 2006
New Revision: 420526
URL: http://svn.apache.org/viewvc?rev=420526&view=rev
Log:
Remove AbstractFileRepository optimisation that caused body message corruption
when using file repositories (JAMES-559)
Modified:
james/server/branches/v2.3/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java
Modified:
james/server/branches/v2.3/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java
URL:
http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java?rev=420526&r1=420525&r2=420526&view=diff
==============================================================================
---
james/server/branches/v2.3/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java
(original)
+++
james/server/branches/v2.3/src/java/org/apache/james/mailrepository/filepair/AbstractFileRepository.java
Mon Jul 10 07:02:10 2006
@@ -18,6 +18,7 @@
package org.apache.james.mailrepository.filepair;
import java.io.File;
+import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
@@ -39,8 +40,6 @@
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
-import javax.mail.util.SharedFileInputStream;
-
/**
* This an abstract class implementing functionality for creating a file-store.
*
@@ -258,7 +257,7 @@
protected InputStream getInputStream( final String key )
throws IOException
{
- return new SharedFileInputStream( encode( key ) );
+ return new FileInputStream( encode( key ) );
}
protected OutputStream getOutputStream( final String key )
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]