Change in ovirt-engine[master]: restapi: Fix missing description for bad request

juan.hernandez at redhat.com juan.hernandez at redhat.com
Mon Mar 28 14:07:48 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Fix missing description for bad request
......................................................................


restapi: Fix missing description for bad request

Introduction of versioning created a regression where,
depending on whether the client explicitly provided a
version in the URL (e.g: /v4) - descriptions for bad
requests may not have been displayed.

This patch fixes this issue by considering the 'source'
of the version - provided by client or added implicitly
by the engine - when comparing the URL of the request
to links in the RSDL.

Bug-Url: http://bugzilla.redhat.com/1285390
Change-Id: I9c4aa51d60e9de37cf6d33947fa25ea857143f59
Signed-off-by: Ori Liel <oliel at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/validation/UsageFinder.java
1 file changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Ori Liel: Verified
  Juan Hernandez: Looks good to me, approved
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9c4aa51d60e9de37cf6d33947fa25ea857143f59
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <oliel 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