Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

duoduobingbing/springsecuritycontextpathbug-spring-boot-2.7.0-SNAPSHOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Has been fixed since Spring Boot 2.6.7

Spring Boot and Security 2.7.0-SNAPSHOT

Having a custom exception entry point (that returns 401) and a context path set causes Spring Security to display a white page instead of a 401 page even if .antMatchers("/error").permitAll() has been set.

How to reproduce

Workarounds

  1. Dowgrade to Spring Boot 2.5.8
  2. explictly add context path to permitted AntMatchers: .antMatchers("/example/error").permitAll()

About

Shows the context path bug under Spring Boot 2.7.0 Snapshot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published