sbglasius opened a new issue, #15228: URL: https://github.com/apache/grails-core/issues/15228
### Expected Behavior When I call ``` respond (validateable.errors) ``` I expect my `grails-app/views/errors/_errors.gson` view to be rendered ### Actual Behaviour That the general renderer of my Errors class is rendered, ignoring `errors/_errors.gson` ### Steps To Reproduce I have noticed, that in Grails 6.2.3 when calling respond(cmd.errors) and having a `views/errors/_errors.gson` it gets called through the `grails.plugin.json.view.mvc.JsonViewResolver` and `grails.plugin.json.renderer.ErrorsJsonViewRenderer` but in Grails 7.0.2 the view resolver is not called, instead the `DefaultJsonRenderer` is used, and hence the `_errors.gson` is not used. As far as I can see, the `JsonViewResolver#initialize()` is called, but the registration is not read when `org.grails.plugins.web.rest.render.DefaultRendererRegistry#findContainerRenderer` is called. I will proceed with writing a functional test in `grails-test-examples/views-functional-tests/src/test/groovy/grails/plugin/json/view/test/JsonViewUnitTestSpec.groovy` ### Environment Information Ubuntu 24.04 JDK 17 or 21 ### Example Application https://github.com/sbglasius/grails-respond-gson-bug ### Version 7.0.2 -- 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]
