mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-9689 - Reinstate FTP tests
ALF-9404 - Save As New file. ALF-8756 - Robocopy and Touch git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29551 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -47,10 +47,8 @@ import org.alfresco.repo.cache.SimpleCache;
|
||||
import org.alfresco.repo.node.NodeServicePolicies;
|
||||
import org.alfresco.repo.policy.JavaBehaviour;
|
||||
import org.alfresco.repo.policy.PolicyComponent;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.NamespaceService;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.PropertyCheck;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -160,8 +158,9 @@ public class BufferedContentDiskDriver implements ExtendedDiskInterface,
|
||||
public FileInfo getFileInformation(SrvSession sess, TreeConnection tree,
|
||||
String path) throws IOException
|
||||
{
|
||||
String userName = sess.getClientInformation().getUserName();
|
||||
|
||||
|
||||
String userName = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("getFileInformation userName:" + userName + ", path:" + path);
|
||||
@@ -208,8 +207,9 @@ public class BufferedContentDiskDriver implements ExtendedDiskInterface,
|
||||
@Override
|
||||
public int fileExists(SrvSession sess, TreeConnection tree, String path)
|
||||
{
|
||||
String userName = sess.getClientInformation().getUserName();
|
||||
|
||||
|
||||
String userName = AuthenticationUtil.getFullyAuthenticatedUser();
|
||||
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("fileExists userName:" + userName + ", path:" + path);
|
||||
|
Reference in New Issue
Block a user