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.
6353603d63
When the filter is exposed as a bean (directly or through a registration bean), it's picked up by the auto-configuration of MockMvc. This causes a problem as MockMvc does not call init on a filter before it's used and WebSocketUpgradeFilter fails with a NullPointerException if its doFilter method is called when its init method has not been called. This commit reworks the WebSocket auto-configuration to use a ServletContextInitalizer to register WebSocketUpgradeFilter rather than a FilterRegistrationBean. This ensure that the filter is still registered at the required position in the chain (last filter before the servlet) while also preventing it from being registered with the auto-configured MockMvc in tests. Closes gh-37660 |
1 year ago | |
---|---|---|
.. | ||
spring-boot | 1 year ago | |
spring-boot-actuator | 1 year ago | |
spring-boot-actuator-autoconfigure | 1 year ago | |
spring-boot-autoconfigure | 1 year ago | |
spring-boot-dependencies | 1 year ago | |
spring-boot-devtools | 1 year ago | |
spring-boot-docs | 1 year ago | |
spring-boot-parent | 1 year ago | |
spring-boot-starters | 1 year ago | |
spring-boot-test | 1 year ago | |
spring-boot-test-autoconfigure | 1 year ago | |
spring-boot-tools | 1 year ago |