
Tal Nisan has submitted this change and it was merged. Change subject: restapi: Fix V3 for force remove data center ...................................................................... restapi: Fix V3 for force remove data center In version 3 of the API it was possible to remove a data center specifying the "force" parameter in the request body: DELETE /datacenters/123 Content-Type: application/xml <action> <force>true</true> </action> But in version 4 this was replaced with a parameter, because DELETE requests wity bodies are forbidden: DELETE /datacenters/123?force=true But we need to preserve the old behaviour for backwards compatibility. That is what this patch does. Change-Id: Ibf04e0f19f109c287319f4e4f6bcc6e9d5218f86 Bug-Url: https://bugzilla.redhat.com/1366794 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> (cherry picked from commit 587a01290016bfbdc5be17fe101fb37713453fb5) --- M backend/manager/modules/restapi/README.adoc M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/servers/V3DataCenterServer.java 2 files changed, 18 insertions(+), 4 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/62406 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibf04e0f19f109c287319f4e4f6bcc6e9d5218f86 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-4.0 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: gerrit-hooks <automation@ovirt.org>