mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.0 to HEAD
12795: ALFCOM-2419: ResourceBundleWrapper is no longer (de)serializable after changes merged from 2.1-A rev 8323 12826: Fix for ETHREEOH-37 and ETHREEOH-176. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -229,6 +229,7 @@ public final class AuthenticationHelper
|
||||
catch (AuthenticationException authErr)
|
||||
{
|
||||
// expired ticket
|
||||
session.removeAttribute(AUTHENTICATION_USER);
|
||||
return AuthenticationStatus.Failure;
|
||||
}
|
||||
|
||||
@@ -276,11 +277,11 @@ public final class AuthenticationHelper
|
||||
WebApplicationContext wc = WebApplicationContextUtils.getRequiredWebApplicationContext(context);
|
||||
AuthenticationService auth = (AuthenticationService)wc.getBean(AUTHENTICATION_SERVICE);
|
||||
UserTransaction tx = null;
|
||||
HttpSession session = httpRequest.getSession();
|
||||
try
|
||||
{
|
||||
auth.validate(ticket);
|
||||
|
||||
HttpSession session = httpRequest.getSession();
|
||||
User user = (User)session.getAttribute(AuthenticationHelper.AUTHENTICATION_USER);
|
||||
if (user == null)
|
||||
{
|
||||
@@ -313,6 +314,7 @@ public final class AuthenticationHelper
|
||||
}
|
||||
catch (AuthenticationException authErr)
|
||||
{
|
||||
session.removeAttribute(AUTHENTICATION_USER);
|
||||
return AuthenticationStatus.Failure;
|
||||
}
|
||||
catch (Throwable e)
|
||||
|
Reference in New Issue
Block a user