You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-boot/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-web-.../src/test/java/smoketest/web/secure
Madhura Bhave 3460c24a16 Ignore context path when calling privilege evaluator
Previously, the error page security filter passed the request's URI
to the privilege evaluator. This was incorrect in applications with
a custom context path as the privilege evaluator must be passed a
path that does not include the context path and the request URI
includes the context path.

This commit updates the filter to use UrlPathHelper's
pathWithinApplication instead. The path within the application does
not include the context path. In addition, pathWithinAppliation
also correctly handles applications configured with a servlet
mapping other than the default of /.

Closes gh-29299

Co-Authored-By: Andy Wilkinson <wilkinsona@vmware.com>
3 years ago
..
AbstractErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
AbstractUnauthenticatedErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
CustomContextPathErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
CustomContextPathUnauthenticatedErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
CustomServletPathErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
CustomServletPathUnauthenticatedErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
ErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
NoSessionErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago
SampleWebSecureApplicationTests.java Allow previously authorized users to access the error page 3 years ago
UnauthenticatedErrorPageTests.java Ignore context path when calling privilege evaluator 3 years ago