mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed ALF-11201: CMIS ignores user login and runs as 'admin' sometimes
- Change the way the CMIS implementation interacts with authentication, logging and transactions by constructing a service layered in three interceptors: <property name="cmisTransactions" ref="CMISService_Transactions" /> <property name="cmisExceptions" ref="CMISService_Exceptions" /> <property name="cmisControl" ref="CMISService_Control" /> - CMISService_Transactions: Retrying transactions are initiated for all operations and we no longer attempt to hold transactions open across method calls. This optimization is secondary to having full retrying behaviour, without which the server could throw avoidable exceptions in concurrent environments. - CMISService_Exceptions: Performs translation from typical repo exceptions into CMIS exceptions - CMISService_Control: Provides details logging of inbound authentication states, arguments, exceptions and return values To get logging without method arguments (can be verbose): log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=DEBUG To include method call arguments: log4j.logger.org.alfresco.opencmis.AlfrescoCmisServiceInterceptor=TRACE Logging will include details of inbound, method-call and outbound thread authentication credentials. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -174,6 +174,7 @@ import org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyStringImpl
|
||||
import org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertyUriImpl;
|
||||
import org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryCapabilitiesImpl;
|
||||
import org.apache.chemistry.opencmis.commons.impl.dataobjects.RepositoryInfoImpl;
|
||||
import org.apache.chemistry.opencmis.commons.server.CmisService;
|
||||
import org.apache.chemistry.opencmis.commons.spi.Holder;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
@@ -185,11 +186,14 @@ import org.springframework.extensions.surf.util.AbstractLifecycleBean;
|
||||
|
||||
/**
|
||||
* Bridge connecting Alfresco and OpenCMIS.
|
||||
* <p/>
|
||||
* This class provides many of the typical services that the {@link CmisService} implementation
|
||||
* will need to use Alfresco.
|
||||
*
|
||||
* @author florian.mueller
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
public class CMISConnector implements ApplicationContextAware, ApplicationListener<ApplicationContextEvent>,
|
||||
TenantDeployer
|
||||
public class CMISConnector implements ApplicationContextAware, ApplicationListener<ApplicationContextEvent>, TenantDeployer
|
||||
{
|
||||
public static final char ID_SEPERATOR = ';';
|
||||
public static final String ASSOC_ID_PREFIX = "assoc:";
|
||||
@@ -565,9 +569,14 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
|
||||
return dictionaryService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Not implemented
|
||||
* @throws UnsupportedOperationException always
|
||||
*/
|
||||
public void setProxyUser(String proxyUser)
|
||||
{
|
||||
this.proxyUser = proxyUser;
|
||||
// this.proxyUser = proxyUser;
|
||||
throw new UnsupportedOperationException("proxyUser setting not implemented. Please raise a JIRA request.");
|
||||
}
|
||||
|
||||
public String getProxyUser()
|
||||
|
Reference in New Issue
Block a user