Change in ovirt-engine[ovirt-engine-3.4]: restapi: IO exception mapper
oourfali at redhat.com
oourfali at redhat.com
Sat Jun 21 07:41:31 UTC 2014
Oved Ourfali has submitted this change and it was merged.
Change subject: restapi: IO exception mapper
......................................................................
restapi: IO exception mapper
This patch introduces a new message body reader that generates always an
IO exception, containing the cause of the error, and a generic exception
mapper that takes that IO exception, extracts the cause and generates
the corresponding message.
Change-Id: Id63e6eee673723ac32e3c2740f338f7ca465c6ac
Bug-Url: https://bugzilla.redhat.com/1110295
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit a47e95e9d5eed10a57ef38963450421ccd32a07f)
---
M backend/manager/modules/restapi/interface/definition/pom.xml
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/xml/JAXBMessageBodyReader.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/xml/JAXBValidationEventHandler.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/BackendApplication.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/IOExceptionMapper.java
D backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/InvalidValueExceptionMapper.java
D backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/XmlMessageBodyReader.java
M backend/manager/modules/restapi/webapp/src/main/webapp/WEB-INF/web.xml
9 files changed, 264 insertions(+), 99 deletions(-)
Approvals:
Ravi Nori: Looks good to me, but someone else must approve
Juan Hernandez: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/28847
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Id63e6eee673723ac32e3c2740f338f7ca465c6ac
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the Engine-commits
mailing list