From ad754abba33da120975cd273492a069ec972621b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 3 Dec 2021 10:33:22 +0200 Subject: [PATCH] Make ErrorPageSecurityFilter compatible with Servlet 3.1 See gh-28902 --- .../boot/web/servlet/filter/ErrorPageSecurityFilter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ErrorPageSecurityFilter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ErrorPageSecurityFilter.java index 1140efc8de..9667ff5ce7 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ErrorPageSecurityFilter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/filter/ErrorPageSecurityFilter.java @@ -21,6 +21,7 @@ import java.io.IOException; import javax.servlet.DispatcherType; import javax.servlet.Filter; import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.ServletRequest; @@ -54,6 +55,11 @@ public class ErrorPageSecurityFilter implements Filter { this.context = context; } + @Override + public void init(FilterConfig filterConfig) throws ServletException { + // Intentionally blank + } + @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {