Skip to content

Replace FORWARD and INCLUDE with ERROR in default DispatcherTypes #5737

@cemo

Description

@cemo

I had trouble about default DispatcherTypes a few times and always found root cause in the context of default DispatcherTypes. Given the next release is a suitable time in terms of semver, please change the default values. What I have in my mind is replacing FORWARD, INCLUDE with ERROR.

Consider Spring Security Filter, Spring Session Filter, HiddenHttpMethodFilter, CharacterEncodingFilter etc... Which one needs to be filtered again in a FORWARD or INCLUDE request? But all these filters must be filtered in an ERROR request as well.

Here is the default values:

static final EnumSet<DispatcherType> ASYNC_DISPATCHER_TYPES = EnumSet.of(
            DispatcherType.FORWARD, DispatcherType.INCLUDE, DispatcherType.REQUEST,
            DispatcherType.ASYNC);

static final EnumSet<DispatcherType> NON_ASYNC_DISPATCHER_TYPES = EnumSet
            .of(DispatcherType.FORWARD, DispatcherType.INCLUDE, DispatcherType.REQUEST);

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions