summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-06-18 15:30:37 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-27 14:23:21 +0200
commit9aac0524c9adb714aa63113fa6b8436e7636e8c2 (patch)
tree15e9b285b992c46771143caacf20fc677b72e9c0 /install/ui/src/freeipa
parent59f66a156be393dba92ab6ca999cdc39c6787c36 (diff)
downloadfreeipa-9aac0524c9adb714aa63113fa6b8436e7636e8c2.tar.gz
freeipa-9aac0524c9adb714aa63113fa6b8436e7636e8c2.tar.xz
freeipa-9aac0524c9adb714aa63113fa6b8436e7636e8c2.zip
webui: send API version in RPC requests
Currently there is an incorrect behavior that server doesn't send datetime and dnsname data in new format. This patch adds the version to each RPC request making the UI look as the latest client. Server then sends data in correct format. It also removes the "unknown version" warning from each RPC response. https://fedorahosted.org/freeipa/ticket/4394 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa')
-rw-r--r--install/ui/src/freeipa/rpc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/rpc.js b/install/ui/src/freeipa/rpc.js
index 981b0c783..d49f60fee 100644
--- a/install/ui/src/freeipa/rpc.js
+++ b/install/ui/src/freeipa/rpc.js
@@ -362,6 +362,8 @@ rpc.command = function(spec) {
}
}
+ that.options.version = window.ipa_loader.api_version;
+
that.data = {
method: that.get_command(),
params: [that.args, that.options]
@@ -512,6 +514,8 @@ rpc.batch_command = function(spec) {
that.execute = function() {
that.errors.clear();
+ that.options.version = window.ipa_loader.api_version;
+
var command = rpc.command({
name: that.name,
entity: that.entity,