mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge 3.1 to HEAD:
13314: Fix for CIFS offline sync, reconnect updated file to properties/history. ETHREEOH-1247. 13334: Added attribute to allow CIFS host announcement to be switched off via custom config. ETHREEOH-1356. Fixed bug in Windows domain name config. 13335: Changed error message to warning, and removed stacktrace, when resolving the server name. 13336: Renamed file-servers-custom.xml out of the way, to .sample2. Seems to be from an Adobe merge. 13377: Hack to enable basic CIFS IPv6 support, enabled via <tcpipSMB ipv6="enabled"/> in the xml config file. 13399: Fixed confusing debug message. 13431: Added missing parsing of 'offlineCheckInterval' parameter. 13457: Added support for file locking on in-memory pseudo files. Fix for problem with __AlfrescoClient.url files ETHREEOH-1311 13485: Added the missing CIFS sessionTimeout config value parsing. 13521: Updated file-servers.xml default config to match previous file-servers-custom.xml settings git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,6 +32,7 @@ import org.alfresco.jlan.locking.NotLockedException;
|
||||
import org.alfresco.jlan.server.SrvSession;
|
||||
import org.alfresco.jlan.server.filesys.NetworkFile;
|
||||
import org.alfresco.jlan.server.filesys.TreeConnection;
|
||||
import org.alfresco.jlan.server.filesys.pseudo.MemoryNetworkFile;
|
||||
import org.alfresco.jlan.server.locking.LockManager;
|
||||
import org.alfresco.filesys.alfresco.AlfrescoNetworkFile;
|
||||
|
||||
@@ -65,6 +66,10 @@ public class FileStateLockManager implements LockManager {
|
||||
AlfrescoNetworkFile alfFile = (AlfrescoNetworkFile) file;
|
||||
fstate = alfFile.getFileState();
|
||||
}
|
||||
else if ( file instanceof MemoryNetworkFile) {
|
||||
file.addLock(lock);
|
||||
return;
|
||||
}
|
||||
|
||||
if ( fstate == null)
|
||||
throw new IOException("Open file without state (lock)");
|
||||
@@ -92,12 +97,16 @@ public class FileStateLockManager implements LockManager {
|
||||
|
||||
// Get the file state associated with the file
|
||||
|
||||
FileState fstate = null;
|
||||
FileState fstate = null;
|
||||
|
||||
if ( file instanceof AlfrescoNetworkFile) {
|
||||
AlfrescoNetworkFile alfFile = (AlfrescoNetworkFile) file;
|
||||
fstate = alfFile.getFileState();
|
||||
}
|
||||
if ( file instanceof AlfrescoNetworkFile) {
|
||||
AlfrescoNetworkFile alfFile = (AlfrescoNetworkFile) file;
|
||||
fstate = alfFile.getFileState();
|
||||
}
|
||||
else if ( file instanceof MemoryNetworkFile) {
|
||||
file.removeLock(lock);
|
||||
return;
|
||||
}
|
||||
|
||||
if ( fstate == null)
|
||||
throw new IOException("Open file without state (unlock)");
|
||||
|
Reference in New Issue
Block a user