Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsrfFilter Accesses Session on Every Request #11456

Closed
2 tasks done
Tracked by #6125
rwinch opened this issue Jul 1, 2022 · 0 comments
Closed
2 tasks done
Tracked by #6125

CsrfFilter Accesses Session on Every Request #11456

rwinch opened this issue Jul 1, 2022 · 0 comments
Assignees
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Milestone

Comments

@rwinch
Copy link
Member

rwinch commented Jul 1, 2022

java.lang.RuntimeException: getSession(false)
	at example.SessionAccessedFilter$1.getSession(SessionAccessedFilter.java:25)
	at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:244)
	at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:244)
	at org.springframework.security.web.csrf.HttpSessionCsrfTokenRepository.loadToken(HttpSessionCsrfTokenRepository.java:65)
	at org.springframework.security.web.csrf.LazyCsrfTokenRepository.loadToken(LazyCsrfTokenRepository.java:80)
	at org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:104)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:351)
@rwinch rwinch mentioned this issue Jul 1, 2022
7 tasks
@rwinch rwinch added this to the 5.8.x milestone Jul 1, 2022
@rwinch rwinch self-assigned this Jul 1, 2022
@rwinch rwinch added in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement labels Jul 1, 2022
@rwinch rwinch modified the milestones: 5.8.x, 5.8.0-M2, 5.8.0-M3 Aug 11, 2022
rwinch added a commit that referenced this issue Aug 16, 2022
@rwinch rwinch closed this as completed in 5cf42b1 Aug 16, 2022
sjohnr added a commit to sjohnr/spring-security that referenced this issue Sep 2, 2022
sjohnr added a commit that referenced this issue Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Projects
Status: Done
Development

No branches or pull requests

1 participant