diff --git a/source/java/org/alfresco/repo/web/scripts/servlet/BasicHttpAuthenticatorFactory.java b/source/java/org/alfresco/repo/web/scripts/servlet/BasicHttpAuthenticatorFactory.java index 58533c905a..464a02e46a 100644 --- a/source/java/org/alfresco/repo/web/scripts/servlet/BasicHttpAuthenticatorFactory.java +++ b/source/java/org/alfresco/repo/web/scripts/servlet/BasicHttpAuthenticatorFactory.java @@ -122,8 +122,15 @@ public class BasicHttpAuthenticatorFactory implements ServletAuthenticatorFactor if (logger.isDebugEnabled()) logger.debug("Authenticating as Guest"); - authenticationService.authenticateAsGuest(); - authorized = true; + try + { + authenticationService.authenticateAsGuest(); + authorized = true; + } + catch (AuthenticationException ex) + { + // failed authentication + } } // authenticate as specified by explicit ticket on url