Change in ovirt-engine[ovirt-engine-3.5]: restapi: Fix prefix in RSDL

tnisan at redhat.com tnisan at redhat.com
Tue Jul 15 10:23:25 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: restapi: Fix prefix in RSDL
......................................................................


restapi: Fix prefix in RSDL

Currently during the build process we generate a RSDL document that
contains "href" attributes including the prefix "/ovirt-engine/api". But
the application is deployed twice, once for "/api" and another for
"/ovirt-engine/api", thus the RSDL document presented by "/api" isn't
valid. To avoid this issue this patch changes the build process so that
it will generate a RSDL document that doesn't contain any prefix. The
correct prefix will be added during runtime by each deployment of the
application.

Change-Id: If5fadb92b6f3a6b06e44729c967289c5917f9a25
Bug-Url: https://bugzilla.redhat.com/1102772
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
(cherry picked from commit 5a047b30553124a83946ca4447fb801e1bf8ad35)
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlBuilder.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/RsdlManager.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java
3 files changed, 66 insertions(+), 43 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/30091
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If5fadb92b6f3a6b06e44729c967289c5917f9a25
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list