Change in ovirt-engine[master]: restapi: Fix V3 for force remove data center

juan.hernandez at redhat.com juan.hernandez at redhat.com
Wed Aug 17 09:04:37 UTC 2016


Juan Hernandez 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 at redhat.com>
---
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/62328
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibf04e0f19f109c287319f4e4f6bcc6e9d5218f86
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list