Change in ovirt-engine[ovirt-engine-3.6]: restapi: Add @Provides to watchdogs resource

Tal Nisan has submitted this change and it was merged. Change subject: restapi: Add @Provides to watchdogs resource ...................................................................... restapi: Add @Provides to watchdogs resource Currently the watchdogs resource doesn't have a @Provides annotation. In theory this shouldn't be required as the annotation is in the base class. But in practice the application server reacts differently, in particular if the annotation isn't present the server won't use use the JAXB or JSON providers when the "Accept" header doesn't have a value. This means that requests like this: DELETE /vms/{vm:id}/watchdogs/{watchdog:id} Will fail with the following error message: Could not find MessageBodyWriter for response object of type: org.ovirt.engine.api.model.Action of media type: application/octet-stream This specific problem can be resolved adding the "Accept" header to the request, and that is good practice. For backwards compatibility sake this patch adds the annotation. Change-Id: I1bcb6263450be603b21e398196c6713ad599ce25 Bug-Url: https://bugzilla.redhat.com/1250046 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> (cherry picked from commit e494a557b00d6a4028fed172fb3ad1d8e276733a) --- M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/WatchdogResource.java 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/45065 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I1bcb6263450be603b21e398196c6713ad599ce25 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.6 Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: automation@ovirt.org
participants (1)
-
tnisan@redhat.com