Skip to content

@RequestMapping doesn't honor params attribute [SPR-4127] #8806

@spring-projects-issues

Description

@spring-projects-issues

Konstantin Titorenko opened SPR-4127 and commented

After switch from RC1 to RC2 multiform controller is not working, since AnnotationMethodHandlerAdapter.HandlerMethodResolver is not checkin the params value. See the following source:

private boolean checkParameters(HttpServletRequest request, RequestMappingInfo mapping) {
if (mapping.methods.length > 0) {
for (RequestMethod type : mapping.methods) {
if (type.toString().equals(request.getMethod().toUpperCase())) {
return true;
}
}
return false;
}
.... checking params...
}

obviously "return true" statement should not be executed here. The source code in rc1 looks correct.


Affects: 2.5 RC2

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions