From af56b1ebac381c57978a995e0512861928052074 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Tue, 11 Mar 2008 18:08:14 +0000 Subject: [PATCH] MT - fix, missed in previous merge git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8516 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/security/authentication/AuthenticationServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java b/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java index 3f28887048..ac8d737897 100644 --- a/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java +++ b/source/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java @@ -110,6 +110,8 @@ public class AuthenticationServiceImpl extends AbstractAuthenticationService { try { + // clear context - to avoid MT concurrency issue (causing domain mismatch) - see also 'validate' below + clearCurrentSecurityContext(); preAuthenticationCheck(userName); authenticationComponent.authenticate(userName, password); }