mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for ALF-11973
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32884 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,7 +50,7 @@ public class AlfrescoCmisServiceInterceptor implements MethodInterceptor
|
||||
boolean debug = logger.isDebugEnabled();
|
||||
boolean trace = logger.isTraceEnabled();
|
||||
StringBuilder sb = null;
|
||||
if (debug)
|
||||
if (debug || trace)
|
||||
{
|
||||
sb = new StringBuilder("\n" +
|
||||
"CMIS invocation: \n" +
|
||||
@@ -69,24 +69,37 @@ public class AlfrescoCmisServiceInterceptor implements MethodInterceptor
|
||||
// Wrap with pre- and post-method calls
|
||||
try
|
||||
{
|
||||
sb.append(
|
||||
" Pre-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
if(debug || trace)
|
||||
{
|
||||
sb.append(
|
||||
" Pre-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
}
|
||||
|
||||
service.beforeCall();
|
||||
sb.append(
|
||||
" In-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
|
||||
if(debug || trace)
|
||||
{
|
||||
sb.append(
|
||||
" In-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
}
|
||||
|
||||
ret = invocation.proceed();
|
||||
}
|
||||
finally
|
||||
{
|
||||
service.afterCall();
|
||||
sb.append(
|
||||
" Post-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
|
||||
if(debug || trace)
|
||||
{
|
||||
sb.append(
|
||||
" Post-call authentication: \n" +
|
||||
" Full auth: " + AuthenticationUtil.getFullyAuthenticatedUser() + "\n" +
|
||||
" Effective auth: " + AuthenticationUtil.getRunAsUser() + "\n");
|
||||
}
|
||||
}
|
||||
if (trace)
|
||||
{
|
||||
|
Reference in New Issue
Block a user