This commit is contained in:
Jan Bartel 2017-01-18 17:23:46 +11:00
parent 9bc4cd32fc
commit 4b2b5e0eed
1 changed files with 15 additions and 1 deletions

View File

@ -257,7 +257,21 @@ public class FormAuthenticator extends LoginAuthenticator
if (isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo())) &&!DeferredAuthentication.isDeferred(response)) if (isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo())) &&!DeferredAuthentication.isDeferred(response))
return new DeferredAuthentication(this); return new DeferredAuthentication(this);
HttpSession session = request.getSession(true); HttpSession session = null;
try
{
session = request.getSession(true);
}
catch (Exception e)
{
if (LOG.isDebugEnabled())
LOG.debug(e);
}
//if unable to create a session, user must be
//unauthenticated
if (session == null)
return Authentication.UNAUTHENTICATED;
try try
{ {