mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10963 Cannot overwrite files on CIFS share with Notepad++
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -289,6 +289,11 @@ public class LegacyFileStateDriver implements ExtendedDiskInterface
|
||||
{
|
||||
ContentContext tctx = (ContentContext) tree.getContext();
|
||||
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("closeFile:" + param.getFullName() + ", accessToken:" + param.getAccessToken());
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
diskInterface.closeFile(sess, tree, param);
|
||||
@@ -300,7 +305,7 @@ public class LegacyFileStateDriver implements ExtendedDiskInterface
|
||||
|
||||
if(fstate.getOpenCount() ==0 )
|
||||
{
|
||||
logger.debug("reset shared access to READWRITEDELETE");
|
||||
logger.debug("OpenCount = 0, reset shared access to READ WRITE DELETE");
|
||||
fstate.setSharedAccess( SharingMode.READWRITE + SharingMode.DELETE);
|
||||
|
||||
fstate.setAllocationSize(-1);
|
||||
@@ -311,10 +316,11 @@ public class LegacyFileStateDriver implements ExtendedDiskInterface
|
||||
|
||||
if(fstate != null && param.getAccessToken() != null)
|
||||
{
|
||||
|
||||
FileAccessToken token = param.getAccessToken();
|
||||
if(logger.isDebugEnabled() && token != null)
|
||||
{
|
||||
logger.debug("close file release lock token:" + token);
|
||||
logger.debug("close file release access token:" + token);
|
||||
}
|
||||
cache.releaseFileAccess(fstate, token);
|
||||
}
|
||||
|
Reference in New Issue
Block a user