diff --git a/source/java/org/alfresco/repo/webdav/auth/AuthenticationFilter.java b/source/java/org/alfresco/repo/webdav/auth/AuthenticationFilter.java index 7f4fcf9105..f4624c708a 100644 --- a/source/java/org/alfresco/repo/webdav/auth/AuthenticationFilter.java +++ b/source/java/org/alfresco/repo/webdav/auth/AuthenticationFilter.java @@ -163,19 +163,16 @@ public class AuthenticationFilter extends BaseAuthenticationFilter implements De password = ""; } - // First check if we already are authenticated - if (AuthenticationUtil.getFullyAuthenticatedUser() == null) + // Go to the repo and authenticate + Authorization auth = new Authorization(username, password); + if (auth.isTicket()) { - // We have to go to the repo and authenticate - Authorization auth = new Authorization(username, password); - if (auth.isTicket()) - { - authenticationService.validate(auth.getTicket()); - } - else - { - authenticationService.authenticate(username, password.toCharArray()); - authenticationListener.userAuthenticated(new BasicAuthCredentials(username, password)); + authenticationService.validate(auth.getTicket()); + } + else + { + authenticationService.authenticate(username, password.toCharArray()); + authenticationListener.userAuthenticated(new BasicAuthCredentials(username, password)); } user = createUserEnvironment(httpReq.getSession(), authenticationService.getCurrentUserName(), authenticationService.getCurrentTicket(), false);