From 194f15373b2af195b0154ec86f3425d04ae6679d Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Tue, 13 Dec 2005 10:52:18 +0000 Subject: [PATCH] Correct handling in the client (portal and servlet) for expired ticket support. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2031 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/web/app/servlet/AuthenticationHelper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java b/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java index 85b19289d1..e4688a26ec 100644 --- a/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java +++ b/source/java/org/alfresco/web/app/servlet/AuthenticationHelper.java @@ -64,7 +64,14 @@ public final class AuthenticationHelper // setup the authentication context WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context); AuthenticationService auth = (AuthenticationService)ctx.getBean("authenticationService"); - auth.validate(user.getTicket()); + try + { + auth.validate(user.getTicket()); + } + catch (AuthenticationException authErr) + { + return false; + } // Set the current locale I18NUtil.setLocale(Application.getLanguage(httpRequest.getSession()));