ALF-6297 - Adobe Framemaker "save" function does not play well with alfresco cifs

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29687 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2011-08-11 12:54:36 +00:00
parent 0b171e0f40
commit 7c9c6be018
15 changed files with 639 additions and 46 deletions

View File

@@ -146,7 +146,7 @@ public class CommandExecutorImpl implements CommandExecutor
*/
if(command instanceof CompoundCommand)
{
logger.debug("post Commit");
logger.debug("post commit of compound command");
CompoundCommand c = (CompoundCommand)command;
List<Command> commands = c.getPostCommitCommands();
@@ -210,7 +210,8 @@ public class CommandExecutorImpl implements CommandExecutor
int openAction = FileAction.OpenIfExists;
// TODO Open Action FileAction.NTOverwrite o.truncate
FileOpenParams params = new FileOpenParams(o.getPath(), openAction, o.isWriteAccess() ? AccessMode.ReadWrite : AccessMode.ReadOnly, FileAttribute.NTNormal, 0);
// TODO ATTRIBUTES ONLY and DELETE ONLY
FileOpenParams params = new FileOpenParams(o.getPath(), openAction, o.getMode() == OpenFileMode.WRITE ? AccessMode.ReadWrite : AccessMode.ReadOnly, FileAttribute.NTNormal, 0);
return diskInterface.openFile(sess, tree, params);
}