DefaultWebInvocationPrivilegeEvaluator
can't handle rules based on remote address
#10664
Labels
DefaultWebInvocationPrivilegeEvaluator
can't handle rules based on remote address
#10664
Describe the bug
When the
ErrorPageSecurityFilter
kicks in, it uses theDefaultWebInvocationPrivilegeEvaluator
to determine if some error pages should be shown or if just a status code should be sent. If the pattern controlling access to error pages contain patterns based on remote address, the invocation fails with an exception:To Reproduce
Download project https://github.com/fast-reflexes/spring-boot-bug/tree/getRemoteAddrNotImplemented
It is a project with the following security config:
Start the app with
./gradlew bootRun
Access
localhost:8080/non-existing
Check exception in console
Expected behavior
Expected behaviour is to either allow access to the Spring error page or to just send a status code, depending on the remote address pattern and remote address itself. Definitely not an exception and downgrading to the Tomcat error page.
Sample
See above
The text was updated successfully, but these errors were encountered: