summaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0d0e641c9..e8f80a688 100644
--- a/Makefile
+++ b/Makefile
@@ -136,6 +136,7 @@ version-update: release-update
> ipatests/setup.py
sed -e s/__NUM_VERSION__/$(IPA_NUM_VERSION)/ install/ui/src/libs/loader.js.in \
> install/ui/src/libs/loader.js
+ perl -pi -e "s:__API_VERSION__:$(IPA_API_VERSION_MAJOR).$(IPA_API_VERSION_MINOR):" install/ui/src/libs/loader.js
perl -pi -e "s:__NUM_VERSION__:$(IPA_NUM_VERSION):" ipapython/version.py
perl -pi -e "s:__VENDOR_VERSION__:$(IPA_VENDOR_VERSION):" ipapython/version.py
perl -pi -e "s:__API_VERSION__:$(IPA_API_VERSION_MAJOR).$(IPA_API_VERSION_MINOR):" ipapython/version.py