Skip to content

DispatcherServlet: enable applyDefaultViewName to access multipart request parameters [SPR-13272] #17863

@spring-projects-issues

Description

@spring-projects-issues

Oliver Becker opened SPR-13272 and commented

I wonder if it is on purpose that DispatcherServlet.applyDefaultViewName gets the original request as parameter and not processedRequest (see doDispatch, currently line 965).

We have a scenario where our default view name might depend on the current request parameters. However, in the case of a multipart request these parameters are gone and have been parsed already into processedRequest. So the simple solution to this problem would be to pass processedRequest instead of request as parameter to applyDefaultViewName.

Is there a reason not to do this?


Referenced from: commits e1cce30

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions