mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
Issue #1267
This commit is contained in:
parent
69afe33b82
commit
ae0a8c7f2b
@ -257,7 +257,21 @@ public class FormAuthenticator extends LoginAuthenticator
|
||||
if (isLoginOrErrorPage(URIUtil.addPaths(request.getServletPath(),request.getPathInfo())) &&!DeferredAuthentication.isDeferred(response))
|
||||
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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user