Skip to content

Commit ffd1e85

Browse files
committed
Merge pull request #33252 from vpavic
* gh-33252: Fix Spring Security filter dispatcher types related docs Closes gh-33252
2 parents 22b054d + ca72f32 commit ffd1e85

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

+2
Original file line numberDiff line numberDiff line change
@@ -2722,6 +2722,8 @@
27222722
"defaultValue": [
27232723
"async",
27242724
"error",
2725+
"forward",
2726+
"include",
27252727
"request"
27262728
]
27272729
},

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/servlet.adoc

-3
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,6 @@ The error page filter can only forward the request to the correct error page if
397397
By default, WebSphere Application Server 8.0 and later commits the response upon successful completion of a servlet's service method.
398398
You should disable this behavior by setting `com.ibm.ws.webcontainer.invokeFlushAfterService` to `false`.
399399

400-
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.
401-
To do so, set the `spring.security.filter.dispatcher-types` property to `async, error, forward, request`.
402-
403400

404401

405402
[[web.servlet.spring-mvc.cors]]

0 commit comments

Comments
 (0)