-
Bug
-
Resolution: Fixed
-
Low
-
0.7.23
-
None
-
true
In HttpSecurityWrapper::getUserPrincipal session creation is forced when trying to retrieve the servlet context
public Principal getUserPrincipal() { if (securityConfig == null) { securityConfig = (SecurityConfig) request.getSession().getServletContext().getAttribute(SecurityConfig.STORAGE_KEY); } Principal user = securityConfig.getAuthenticator().getUser(request); return user; }
This can interfere with the SecurityFilter which uses the fact that a session exists to attempt to find a logged in user. It is also a generally bad practice to create a session needlessly.
- causes
-
CONFSERVER-7378 "Remember me" does not work with sun application servers
-
- Closed
-
- is duplicated by
-
SER-95 Cookie login fails if a previous filter creates a session
-
- Closed
-
[SER-92] Session is needlessly created by HttpSecurityWrapper::getUserPrincipal
Link | New: This issue causes CONFCLOUD-7378 [ CONFCLOUD-7378 ] |
Workflow | Original: jira [ 86116 ] | New: reviewflow [ 121207 ] |
Fix Version/s | New: 0.8 [ 13183 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |