mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for ALF-16795 CMIS 0.8 TCK - load of large content fails
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@43617 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2672,7 +2672,10 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
||||
if (contentStream.getStream() != null)
|
||||
{
|
||||
OutputStream out = new BufferedOutputStream(new FileOutputStream(tempFile), bufferSize);
|
||||
InputStream in = new BufferedInputStream(contentStream.getStream(), bufferSize);
|
||||
//InputStream in = new BufferedInputStream(contentStream.getStream(), bufferSize);
|
||||
// Temporary work around for bug in InternalTempFileInputStream which auto closes during read
|
||||
// BufferedInputStream subsequent use of available() throws an exception.
|
||||
InputStream in = contentStream.getStream();
|
||||
|
||||
byte[] buffer = new byte[bufferSize];
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user