From ca72f322d6dc97a10d5ce2ba247061ad12a8e83b Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Fri, 18 Nov 2022 12:25:41 +0100 Subject: [PATCH] Fix Spring Security filter dispatcher types related docs See gh-33252 --- .../META-INF/additional-spring-configuration-metadata.json | 2 ++ .../spring-boot-docs/src/docs/asciidoc/web/servlet.adoc | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 3492f36c3577..461ed55e533e 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -2722,6 +2722,8 @@ "defaultValue": [ "async", "error", + "forward", + "include", "request" ] }, diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc index 2a38d3d79984..60d8aeb7f477 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc @@ -397,9 +397,6 @@ The error page filter can only forward the request to the correct error page if By default, WebSphere Application Server 8.0 and later commits the response upon successful completion of a servlet's service method. You should disable this behavior by setting `com.ibm.ws.webcontainer.invokeFlushAfterService` to `false`. -If you are using Spring Security and want to access the principal in an error page, you must configure Spring Security's filter to be invoked on error dispatches. -To do so, set the `spring.security.filter.dispatcher-types` property to `async, error, forward, request`. - [[web.servlet.spring-mvc.cors]]