[JBoss JIRA] (FORGE-1422) REST addon should support generation of exception mappers for validation errors
by Burr Sutter (JIRA)
[ https://issues.jboss.org/browse/FORGE-1422?page=com.atlassian.jira.plugin... ]
Burr Sutter commented on FORGE-1422:
------------------------------------
memberPipe.save(newContactAsJSON, {
success: function(data) {
console.log("success");
$("#inputName").val("");
$("#inputPhone").val("");
$("#inputEmail").val("");
$.mobile.changePage("#page-1");
app.refreshRESTContacts();
},
error: function(error) {
console.log("status: " + error.status);
// if error.status == 400
// bean validation errors
// need a nice string to display in my errorDialog
console.log("responseText: " + error.responseText);
$.mobile.changePage("#errorDialog");
}
}); // memberPipe.save
> 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
12 years, 3 months
[JBoss JIRA] (FORGE-1422) REST addon should support generation of exception mappers for validation errors
by Vineet Reynolds (JIRA)
Vineet Reynolds created FORGE-1422:
--------------------------------------
Summary: 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
12 years, 3 months