Change in ovirt-engine[master]: restapi: Preserve parameters when forwarding

Juan Hernandez has submitted this change and it was merged. Change subject: restapi: Preserve parameters when forwarding ...................................................................... restapi: Preserve parameters when forwarding The version filter forwards requests to specific versions of the API, adding the "/v3" or "/v4" prefix to the URL as needed. But when it does this it also loses the matrix and query parameters. For example, if the original URI is this: /hosts/{host:id};force=true The forwarded URI is this, with the version prefix but without the parameters: /v4/hosts/{hosts:id} This patch fixes that error. Change-Id: I4706634c26c3ea60c73cef5f2d070344e488b349 Signed-off-by: Juan Hernandez <juan.hernandez@redhat.com> --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/invocation/VersionFilter.java 1 file changed, 10 insertions(+), 5 deletions(-) Approvals: Juan Hernandez: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/53645 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I4706634c26c3ea60c73cef5f2d070344e488b349 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Juan Hernandez <juan.hernandez@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
juan.hernandez@redhat.com