mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Mod time and last modifier are properly set.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -463,19 +463,6 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
{
|
||||
ContentWriter writer = getWriter(path);
|
||||
return writer.getContentOutputStream();
|
||||
/*
|
||||
Lookup lPath = lookup(-1, path, true);
|
||||
AVMNode node = lPath.getCurrentNode();
|
||||
if (node.getType() != AVMNodeType.PLAIN_FILE &&
|
||||
node.getType() != AVMNodeType.LAYERED_FILE)
|
||||
{
|
||||
throw new AVMWrongTypeException("Not a file: " + path);
|
||||
}
|
||||
FileNode file = (FileNode)node;
|
||||
FileContent content = file.getContentForWrite();
|
||||
file.updateModTime();
|
||||
return content.getOutputStream();
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1121,6 +1108,7 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
{
|
||||
throw new AVMWrongTypeException("File Expected.");
|
||||
}
|
||||
node.updateModTime();
|
||||
return ((FileNode)node).getContentData(lPath);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user