Blame SOURCES/0002-Force-use-of-v3-REST-API.patch

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