|
|
51ca4a |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
51ca4a |
From: Christophe Fergeau <cfergeau@redhat.com>
|
|
|
51ca4a |
Date: Thu, 16 Jun 2016 11:10:27 +0200
|
|
|
51ca4a |
Subject: [PATCH] Force use of v3 REST API
|
|
|
51ca4a |
|
|
|
51ca4a |
oVirt 4.0 introduced a slightly incompatible REST API, see
|
|
|
51ca4a |
https://github.com/oVirt/ovirt-engine/tree/master/backend/manager/modules/restapi
|
|
|
51ca4a |
A short term fix is to send a "Version: 3" header with each request,
|
|
|
51ca4a |
which this commit does. This might stop working with oVirt 4.1 though.
|
|
|
51ca4a |
|
|
|
51ca4a |
Longer term fix is tracked in
|
|
|
51ca4a |
https://bugzilla.gnome.org/show_bug.cgi?id=767724
|
|
|
51ca4a |
---
|
|
|
51ca4a |
govirt/ovirt-proxy.c | 1 +
|
|
|
51ca4a |
1 file changed, 1 insertion(+)
|
|
|
51ca4a |
|
|
|
51ca4a |
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
|
|
|
51ca4a |
index eee0997..81f3f98 100644
|
|
|
51ca4a |
--- a/govirt/ovirt-proxy.c
|
|
|
51ca4a |
+++ b/govirt/ovirt-proxy.c
|
|
|
51ca4a |
@@ -828,6 +828,7 @@ static void ovirt_proxy_constructed(GObject *gobject)
|
|
|
51ca4a |
g_object_set(OVIRT_PROXY(gobject), "ssl-strict", FALSE, NULL);
|
|
|
51ca4a |
}
|
|
|
51ca4a |
ovirt_proxy_add_header(OVIRT_PROXY(gobject), "Prefer", "persistent-auth");
|
|
|
51ca4a |
+ ovirt_proxy_add_header(OVIRT_PROXY(gobject), "Version", "3");
|
|
|
51ca4a |
|
|
|
51ca4a |
/* Chain up to the parent class */
|
|
|
51ca4a |
if (G_OBJECT_CLASS(ovirt_proxy_parent_class)->constructed)
|