Skip to content

BindingResult errors from @ModelAttribute are not carried over to @RequestMapping annotated method [SPR-11722] #16344

@spring-projects-issues

Description

@spring-projects-issues

Vladimir Semenov opened SPR-11722 and commented

BindingResult errors generated in @ModelAttribute annotated method are not carried over into the BindingResult passed to @RequestMapping annotated method in the same controller.

This appears to be a bug since @ModelAttribute annotated method accepts BindingResult, and errors in Model from @ModelAttribute annotated method are carried over to @RequestMapping annotated method, but errors from BindingResult are not.


Affects: 3.1 GA

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 apply

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions