Merged V2.0 to HEAD

5625: AR-1439 zero length files have content


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-05-15 16:32:20 +00:00
parent b075f0fa7b
commit 86e699a71f

View File

@@ -1408,6 +1408,10 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
NetworkFile netFile = ContentNetworkFile.createFile(transactionService, nodeService, contentService, cifsHelper, nodeRef, params);
// Truncate the file so that the content stream is created
netFile.truncateFile( 0L);
// Generate a file id for the file
if ( netFile != null)