mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9779 - FTP: Failed to retrieve directory listing for tenant user
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29792 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -35,6 +35,7 @@ import org.alfresco.jlan.server.filesys.DiskSharedDevice;
|
||||
import org.alfresco.jlan.server.filesys.FilesystemsConfigSection;
|
||||
import org.springframework.extensions.config.ConfigElement;
|
||||
import org.alfresco.filesys.alfresco.AlfrescoClientInfo;
|
||||
import org.alfresco.filesys.config.ServerConfigurationBean;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
@@ -61,6 +62,8 @@ public class HomeShareMapper implements ShareMapper, InitializingBean
|
||||
|
||||
private ServerConfiguration m_config;
|
||||
private FilesystemsConfigSection m_filesysConfig;
|
||||
|
||||
private ServerConfigurationBean serverConfigurationBean;
|
||||
|
||||
// Filesystem driver to be used to create home shares
|
||||
|
||||
@@ -389,7 +392,7 @@ public class HomeShareMapper implements ShareMapper, InitializingBean
|
||||
// Create the disk driver and context
|
||||
|
||||
ContentContext diskCtx = new ContentContext( getHomeFolderName(), "", "", alfClient.getHomeFolder());
|
||||
diskCtx.enableStateCache( true);
|
||||
diskCtx.enableStateCache(getServerConfigurationBean(), true);
|
||||
|
||||
// Create a temporary shared device for the users home directory
|
||||
|
||||
@@ -400,4 +403,16 @@ public class HomeShareMapper implements ShareMapper, InitializingBean
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public void setServerConfigurationBean(ServerConfigurationBean serverConfigurationBean)
|
||||
{
|
||||
this.serverConfigurationBean = serverConfigurationBean;
|
||||
}
|
||||
|
||||
|
||||
public ServerConfigurationBean getServerConfigurationBean()
|
||||
{
|
||||
return serverConfigurationBean;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user