codeconsole commented on PR #16237:
URL: https://github.com/apache/grails-core/pull/16237#issuecomment-6303697498

   Two more commits since [the summary 
above](https://github.com/apache/grails-core/pull/16237#issuecomment-6301871105):
   
   - 30ba287d04 fixes `ActionExceptionHandlerResolver` for an action whose URL 
names it differently from its method, such as `show-book` with the hyphenated 
URL converter, whose `@ExceptionHandler` methods were not found.
   - 31f7b7753b lets an action return what a Spring MVC handler method returns: 
a `ResponseEntity`, `ProblemDetail`, `ErrorResponse`, `HttpHeaders`, 
`StreamingResponseBody` or `ResponseBodyEmitter`, or any value of an action 
annotated `@ResponseBody`. Spring MVC's return value handlers write it, with 
the `ResponseBodyAdvice` that applies to the controller and the action's 
`@JsonView` and `@ResponseStatus`, also from an error page's action, and 
asynchronous values with the handler adapter's executor, timeout and 
interceptors. It is not behind a setting: Grails 8 wrote none of those values, 
but an action annotated `@ResponseBody`, or of a controller annotated 
`@RestController`, that returns a model now has it written as the body instead 
of rendering its view, which section 15 of the upgrade guide says.
   
   Tested with `ActionReturnValuesSpec`, five more features of the 
`spring-json-respond` app, and the `grails-web-common`, 
`grails-web-url-mappings`, `grails-url-mappings`, `grails-async`, 
`grails-test-suite-web`, `grails-rest-transforms` and `grails-controllers` 
tests.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to