We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having a converter for Domain class which might throw an exception, i.e.:
class MyDomainMarshaller { @javax.annotation.PostConstruct void registerMarshallers() { JSON.registerObjectMarshaller(MyDomain) { myDomain -> throw new RuntimeException("some exception") } } }
brings problem when rendering response with controller respond method:
def show(Long id) { respond MyDomain.get(id) }
This exception should result in rendering 500 defined in url mappings:
"500"(controller: "error", action: "index")
It renders 200 with following content [. It seems that response was partially rendered.
[
The text was updated successfully, but these errors were encountered:
With interceptors seem to have the same problem. At least 404 are not mapped.
Sorry, something went wrong.
Yeah the issue here is the response has already been committed by the time the exception happens so at that point there is no going back
Only flush() and close() the response if no error occurs. Fixes #9473
df16bfa
Only flush() and close() the response if no error occurs. Fixes grail…
d83baa1
…s#9473
graemerocher
No branches or pull requests
Having a converter for Domain class which might throw an exception, i.e.:
brings problem when rendering response with controller respond method:
This exception should result in rendering 500 defined in url mappings:
It renders 200 with following content
[
. It seems that response was partially rendered.The text was updated successfully, but these errors were encountered: