Issue #6085 Fix duplicate valid session cookies to pick first valid.
Cosmetic changes. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
43562774a8
commit
e068119bc3
|
@ -1621,8 +1621,7 @@ public class SessionHandler extends ScopedHandler
|
||||||
if (s != null && isValid(s))
|
if (s != null && isValid(s))
|
||||||
{
|
{
|
||||||
//associate it with the request so its reference count is decremented as the
|
//associate it with the request so its reference count is decremented as the
|
||||||
//session exits
|
//request exits
|
||||||
//try this session id
|
|
||||||
requestedSessionId = id;
|
requestedSessionId = id;
|
||||||
session = s;
|
session = s;
|
||||||
baseRequest.enterSession(session);
|
baseRequest.enterSession(session);
|
||||||
|
@ -1660,8 +1659,11 @@ public class SessionHandler extends ScopedHandler
|
||||||
throw new BadMessageException("Duplicate valid session cookies: " + requestedSessionId + " ," + id);
|
throw new BadMessageException("Duplicate valid session cookies: " + requestedSessionId + " ," + id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (LOG.isDebugEnabled())
|
else
|
||||||
LOG.debug("Duplicate valid session cookie id: {}", id);
|
{
|
||||||
|
if (LOG.isDebugEnabled())
|
||||||
|
LOG.debug("Duplicate valid session cookie id: {}", id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue