Skip to content

Allow MVC interceptors to handle requests for URLs that aren't mapped to any handler [SPR-8468] #13114

@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-8468 and commented

A good example would be signout control logic. Such logic might be part of a UserInterceptor and triggered if the request URI is /signout. However, if /signout is not mapped to a handler, a 404 will be thrown even if UserInterceptor is capable of processing a /signout request.

The workaround seems to be "use a filter". However filters are difficult to configure and do not natively benefit from Spring DI.

The other workaround is to register a dummy handler for something like /signout.


Affects: 3.1 M2

Issue Links:

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions