mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10941 - CIFS Open file from excel
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32068 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -155,7 +155,7 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
{
|
||||
ArrayList<Command> commands = new ArrayList<Command>();
|
||||
ArrayList<Command> postCommitCommands = new ArrayList<Command>();
|
||||
commands.add(new CreateFileCommand(c.getName(), c.getRootNodeRef(), c.getPath()));
|
||||
commands.add(new CreateFileCommand(c.getName(), c.getRootNodeRef(), c.getPath(), c.getAllocationSize()));
|
||||
postCommitCommands.add(newOpenFileCallbackCommand());
|
||||
return new CompoundCommand(commands, postCommitCommands);
|
||||
}
|
||||
@@ -410,7 +410,9 @@ class ScenarioOpenFileInstance implements ScenarioInstance
|
||||
|
||||
state = InternalState.OPEN;
|
||||
|
||||
if(fileHandle.isReadOnly())
|
||||
//
|
||||
if(fileHandle.getGrantedAccess() == NetworkFile.READONLY)
|
||||
//if(fileHandle.isReadOnly())
|
||||
{
|
||||
openReadOnlyCount++;
|
||||
fileHandleReadOnly=fileHandle;
|
||||
|
Reference in New Issue
Block a user