[
https://issues.jboss.org/browse/FORGE-1422?page=com.atlassian.jira.plugin...
]
Vineet Reynolds commented on FORGE-1422:
----------------------------------------
We'll need to bring in exception mapping support like the one in Jersey:
https://jersey.java.net/documentation/latest/bean-validation.html#d0e11775
Unfortunately, that is not standardized. For JBoss EAP based REST resources, we may wish
to do something similar in RESTEasy, to serialize BV errors into HTTP responses.
REST addon should support generation of exception mappers for
validation errors
-------------------------------------------------------------------------------
Key: FORGE-1422
URL:
https://issues.jboss.org/browse/FORGE-1422
Project: Forge
Issue Type: Feature Request
Components: Builtin Plugins
Affects Versions: 2.0.0.Beta4
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Currently a HTTP 500 response is generated for validation errors encountered during
processing of POST/PUT requests that create or update JPA entities. The 500 response
contains a stacktrace that cannot be parsed by clients to evaluate what failed.
We should generate exception mappers that can map Bean validation errors to help generate
parseable responses (for the REST clients).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira