Change in ovirt-engine[master]: restapi: Return fault when storage not found

Code Review gerrit at ovirt.org
Wed Mar 1 08:53:07 UTC 2017


>From Juan Hernandez <juan.hernandez at redhat.com>:

Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Return fault when storage not found
......................................................................


restapi: Return fault when storage not found

When creating a disk via API and specify a storage domain name,
which don't exist, API previously returned 404 HTTP error. Which
is not correct as API should return the reason of failure, this
patch fixes it.

Change-Id: I956c3bdfd4783a1199f29347401d935759b6dc99
Signed-off-by: Ondra Machacek <omachace at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDisksResource.java
2 files changed, 18 insertions(+), 3 deletions(-)

Approvals:
  Ondra Machacek: Verified
  Juan Hernandez: Looks good to me, approved
  Jenkins CI: Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/73277
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I956c3bdfd4783a1199f29347401d935759b6dc99
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Ondra Machacek <omachace at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the Engine-commits mailing list