mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Properly hooked up the on close callback for output streams to AVM Nodes.
Got rid of a now superfluous setContentData() call, and now treat files with no content url (yet) as having length 0. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3660 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -352,8 +352,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
NodeRef nodeRef = AVMNodeConverter.ToNodeRef(-1, fName + ":" + path);
|
||||
ContentWriter writer =
|
||||
AVMContext.fgInstance.getContentService().getWriter(nodeRef, ContentModel.PROP_CONTENT, true);
|
||||
// TODO This can't perform very well.
|
||||
setContentData(path, writer.getContentData());
|
||||
// TODO This can't perform very well. What this gets down to
|
||||
// is that integration with ContentService is awkward.
|
||||
// setContentData(path, writer.getContentData());
|
||||
return writer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user