Skip to content

Update priority for ServerResponseResultHandler [SPR-16420] #20966

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-16420 and commented

Currently it's at lowest precedence which seems unnecessarily low and could cause issues. Since it checks by type it should be safe to have a higher precedence.

By comparison ResponseEntity is at 0, ResponseBody is at 100, and view resolution is at lowest precedence. In a mix of functional endpoints and controllers, if the ViewResolutionResultHandler checks first, the ServerResponse would be treated as a model attribute. In that sense view resolution is really meant to be last in line because it ends up making default assumptions broadly applicable to any non-simple type.

I would suggest to use 0, just like ResponseEntity, for the same reason.


Affects: 5.0.3

Referenced from: commits fbde97f

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions