Tal Nisan has submitted this change and it was merged.
Change subject: restapi: Add support for V3 SD delete with body
......................................................................
restapi: Add support for V3 SD delete with body
Version 3 of the API supported the use of a body in the operation that
deletes a storage domain. This has been removed from version 4 of the
API, as bodies are in general forbidden for delete operations. But we
still need to support it for version 3 of the API, as that is how the
"format", "destroy" and "host" parameters are handled. This
patch
modifies the backwards compatibility layer so that it accepts a body in
this case, and transforms the parameters into query parameters.
Change-Id: I37746b316f284854aab19674c0f9ab4d74cfbf9f
Bug-Url:
https://bugzilla.redhat.com/1340164
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
(cherry picked from commit 940c42cd3195d77bfe8bd99598cc9091abd2d922)
---
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/servers/V3StorageDomainServer.java
1 file changed, 31 insertions(+), 0 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/58281
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I37746b316f284854aab19674c0f9ab4d74cfbf9f
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-4.0
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>