spring-boot/spring-boot-tests/spring-boot-smoke-tests
Andy Wilkinson 4bd3534b7d Adapt to change in Security's filtering behavior
Spring Security now filters every dispatch by default and not only
once-per-request. Security configuration has been updated in a number of
places to restore the old behavior as needed for the tests to pass.
gh-31703 has been opened to review this and to investigate if we can
now remove the error page security filter and rely on the filtering of
every dispatch instead.

In addition to switching to once-per-request filtering where needed,
this commit also restructures the configuration of the error page
security filter. The restructuring was necessary to ensure that the
privilege evaluator bean has been defined before the conditions on the
error page security filter are evaluated. Without the change, the filter
was no longer being configured as the privilege evaluator hadn't been
defined before the on bean condition was evaluated. We may want to back
port this change as the ordering doesn't appear to have been defined
before and we were just getting lucky.

See gh-31622
See spring-projects/spring-security#11466
2022-07-13 12:09:46 +01:00
..
spring-boot-smoke-test-actuator Adapt to trailing slashes no longer being matched by default 2022-07-07 14:16:20 +01:00
spring-boot-smoke-test-actuator-custom-security Adapt to change in Security's filtering behavior 2022-07-13 12:09:46 +01:00
spring-boot-smoke-test-actuator-log4j2 Add timezone offset to default logging date format patterns 2022-05-03 17:09:27 -05:00
spring-boot-smoke-test-actuator-noweb
spring-boot-smoke-test-actuator-ui Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-amqp
spring-boot-smoke-test-animated-banner
spring-boot-smoke-test-ant Raise the minimum supported version of Gradle to 7.3 2021-11-30 15:36:54 +00:00
spring-boot-smoke-test-aop Update smoke tests to avoid conflicts with NAME environment variable 2022-06-08 11:34:19 +01:00
spring-boot-smoke-test-batch Remove redundant throws declarations from internal APIs 2022-05-26 15:47:35 +01:00
spring-boot-smoke-test-bootstrap-registry Polish "Fix typos" 2022-05-03 14:09:53 +01:00
spring-boot-smoke-test-cache Restore Ehcache 3 Support 2022-03-19 09:33:47 +01:00
spring-boot-smoke-test-data-jdbc Adjust IDENTITY in DDLs for H2 2.x compatibility 2022-02-04 09:57:59 +01:00
spring-boot-smoke-test-data-jpa Update copyright year of changed files 2022-02-16 20:44:54 -08:00
spring-boot-smoke-test-data-ldap
spring-boot-smoke-test-data-r2dbc Adjust IDENTITY in DDLs for H2 2.x compatibility 2022-02-04 09:57:59 +01:00
spring-boot-smoke-test-data-r2dbc-flyway Upgrade to R2DBC Borca-RELEASE 2022-02-05 13:37:20 +01:00
spring-boot-smoke-test-data-r2dbc-liquibase Upgrade to R2DBC Borca-RELEASE 2022-02-05 13:37:20 +01:00
spring-boot-smoke-test-data-rest Update copyright year of changed files 2022-02-16 20:44:54 -08:00
spring-boot-smoke-test-devtools Upgrade to Spring Framework 6 and Jakarta EE 9 2021-11-30 20:32:16 +00:00
spring-boot-smoke-test-flyway Upgrade to Spring Framework 6 and Jakarta EE 9 2021-11-30 20:32:16 +00:00
spring-boot-smoke-test-hateoas
spring-boot-smoke-test-integration Start building against Spring Integration 6.0.0-M4 snapshots 2022-07-08 12:39:14 +01:00
spring-boot-smoke-test-jetty Merge branch '2.7.x' 2022-06-08 12:18:36 +01:00
spring-boot-smoke-test-jetty-jsp Merge branch '2.7.x' 2022-03-03 11:05:49 +00:00
spring-boot-smoke-test-jetty-ssl Prohibit unwanted dependencies in all modules not just starters 2021-11-12 20:04:35 +00:00
spring-boot-smoke-test-jpa Upgrade to Hibernate 6.1.1.Final 2022-07-12 09:36:34 +01:00
spring-boot-smoke-test-junit-vintage
spring-boot-smoke-test-kafka Disable on Windows tests that use embedded Kafka 2021-10-21 10:46:50 +01:00
spring-boot-smoke-test-liquibase Upgrade to AssertJ 3.23.1 2022-06-10 13:44:21 +01:00
spring-boot-smoke-test-logback Update copyright year of changed files 2022-02-16 20:44:54 -08:00
spring-boot-smoke-test-oauth2-client Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-oauth2-resource-server
spring-boot-smoke-test-parent-context Start building against Spring Integration 6.0.0-M4 snapshots 2022-07-08 12:39:14 +01:00
spring-boot-smoke-test-profile Update smoke tests to avoid conflicts with NAME environment variable 2022-06-08 11:34:19 +01:00
spring-boot-smoke-test-property-validation Refine assertions on exception messages 2022-06-14 18:20:27 +02:00
spring-boot-smoke-test-quartz Merge branch '2.4.x' into 2.5.x 2021-08-18 17:56:32 +01:00
spring-boot-smoke-test-reactive-oauth2-client Prohibit unwanted dependencies in all modules not just starters 2021-11-12 20:04:35 +00:00
spring-boot-smoke-test-reactive-oauth2-resource-server
spring-boot-smoke-test-rsocket Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-saml2-service-provider Remove hyphen from asserting-party 2022-04-25 15:26:38 +02:00
spring-boot-smoke-test-secure
spring-boot-smoke-test-secure-webflux Merge branch '2.6.x' into 2.7.x 2022-05-26 15:53:38 +01:00
spring-boot-smoke-test-servlet Upgrade to Spring Framework 6 and Jakarta EE 9 2021-11-30 20:32:16 +00:00
spring-boot-smoke-test-session-hazelcast Merge branch '2.7.x' 2022-05-26 18:26:52 +01:00
spring-boot-smoke-test-session-jdbc Merge branch '2.7.x' 2022-05-26 18:26:52 +01:00
spring-boot-smoke-test-session-mongo Polish 2022-05-26 17:30:39 +01:00
spring-boot-smoke-test-session-redis Merge branch '2.7.x' 2022-05-26 18:26:52 +01:00
spring-boot-smoke-test-session-webflux-mongo Merge branch '2.6.x' into 2.7.x 2022-05-06 14:44:57 -05:00
spring-boot-smoke-test-session-webflux-redis Merge branch '2.6.x' into 2.7.x 2022-05-06 14:44:57 -05:00
spring-boot-smoke-test-simple Merge branch '2.7.x' 2022-06-08 12:18:36 +01:00
spring-boot-smoke-test-test Merge branch '2.7.x' 2022-02-05 14:02:00 +01:00
spring-boot-smoke-test-test-nomockito
spring-boot-smoke-test-testng Merge branch '2.7.x' 2022-06-08 12:18:36 +01:00
spring-boot-smoke-test-tomcat Merge branch '2.7.x' 2022-06-08 12:18:36 +01:00
spring-boot-smoke-test-tomcat-jsp Prohibit unwanted dependencies in all modules not just starters 2021-11-12 20:04:35 +00:00
spring-boot-smoke-test-tomcat-multi-connectors Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-tomcat-ssl Prohibit unwanted dependencies in all modules not just starters 2021-11-12 20:04:35 +00:00
spring-boot-smoke-test-traditional Polish 2022-05-26 17:30:39 +01:00
spring-boot-smoke-test-undertow
spring-boot-smoke-test-undertow-ssl Prohibit unwanted dependencies in all modules not just starters 2021-11-12 20:04:35 +00:00
spring-boot-smoke-test-war
spring-boot-smoke-test-web-application-type Ensure that webEnvironment=NONE creates non-web context 2022-04-14 14:44:30 +01:00
spring-boot-smoke-test-web-freemarker
spring-boot-smoke-test-web-groovy-templates Merge branch '2.7.x' 2022-05-03 15:18:20 +01:00
spring-boot-smoke-test-web-jsp Merge branch '2.4.x' into 2.5.x 2021-11-12 20:31:25 +00:00
spring-boot-smoke-test-web-method-security Adapt to change in Security's filtering behavior 2022-07-13 12:09:46 +01:00
spring-boot-smoke-test-web-mustache
spring-boot-smoke-test-web-secure Adapt to change in Security's filtering behavior 2022-07-13 12:09:46 +01:00
spring-boot-smoke-test-web-secure-custom Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-web-secure-jdbc Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-web-static
spring-boot-smoke-test-web-thymeleaf Merge branch '2.7.x' 2022-05-03 15:18:20 +01:00
spring-boot-smoke-test-webflux Migrate @Local*Port annotations to spring-boot-test 2022-04-12 08:48:43 +01:00
spring-boot-smoke-test-webflux-coroutines Configure Kotlin compilation JVM target by convention 2022-02-22 18:11:51 +00:00
spring-boot-smoke-test-webservices Remove obsolete Java compatibility code 2022-06-19 10:22:23 +02:00
spring-boot-smoke-test-websocket-jetty Use switch expressions where appropriate 2022-06-24 16:19:28 +01:00
spring-boot-smoke-test-websocket-tomcat Use switch expressions where appropriate 2022-06-24 16:19:28 +01:00
spring-boot-smoke-test-websocket-undertow Use switch expressions where appropriate 2022-06-24 16:19:28 +01:00
spring-boot-smoke-test-xml Update smoke tests to avoid conflicts with NAME environment variable 2022-06-08 11:34:19 +01:00