mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11274 - CIFS: File cannot be read, if a user has not write permissions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32194 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -291,6 +291,8 @@ public class NonTransactionalRuleContentDiskDriver implements ExtendedDiskInterf
|
||||
{
|
||||
String path = param.getPath();
|
||||
|
||||
boolean truncate = param.isOverwrite();
|
||||
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
int sharedAccess = param.getSharedAccess();
|
||||
@@ -304,6 +306,8 @@ public class NonTransactionalRuleContentDiskDriver implements ExtendedDiskInterf
|
||||
+ ", writeOnlyAccess:" +param.isWriteOnlyAccess()
|
||||
+ ", attributesOnlyAccess:" +param.isAttributesOnlyAccess()
|
||||
+ ", sequentialAccessOnly:" + param.isSequentialAccessOnly()
|
||||
+ ", writeThrough:" + param.isWriteThrough()
|
||||
+ ", truncate:" + truncate
|
||||
+ ", requestBatchOpLock:" +param.requestBatchOpLock()
|
||||
+ ", requestExclusiveOpLock:" +param.requestExclusiveOpLock()
|
||||
+ ", isDeleteOnClose:" +param.isDeleteOnClose()
|
||||
@@ -321,8 +325,6 @@ public class NonTransactionalRuleContentDiskDriver implements ExtendedDiskInterf
|
||||
{
|
||||
logger.debug("NTOverwrite");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
ContentContext tctx = (ContentContext) tree.getContext();
|
||||
@@ -336,9 +338,9 @@ public class NonTransactionalRuleContentDiskDriver implements ExtendedDiskInterf
|
||||
|
||||
EvaluatorContext ctx = getEvaluatorContext(driverState, folder);
|
||||
|
||||
// Todo what about attributes only ?
|
||||
|
||||
|
||||
OpenFileMode openMode = OpenFileMode.READ_WRITE;
|
||||
OpenFileMode openMode = OpenFileMode.READ_ONLY;
|
||||
|
||||
if(param.isAttributesOnlyAccess())
|
||||
{
|
||||
@@ -364,8 +366,6 @@ public class NonTransactionalRuleContentDiskDriver implements ExtendedDiskInterf
|
||||
}
|
||||
openMode = OpenFileMode.DELETE;
|
||||
}
|
||||
|
||||
boolean truncate = param.isOverwrite();
|
||||
|
||||
Operation o = new OpenFileOperation(file, openMode, truncate, rootNode, path);
|
||||
Command c = ruleEvaluator.evaluate(ctx, o);
|
||||
|
Reference in New Issue
Block a user