-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: taskA general taskA general task
Milestone
Description
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)Issues in web modules (web, webmvc, webflux, websocket)type: taskA general taskA general task