Returning non-unicode causes serialization into base64 which causes
havoc in Web UI.
https://fedorahosted.org/freeipa/ticket/4454
IMHO we should fix JSON-RPC serialization to encode non-unicode strings
to normal JSON strings.
--
Petr Vobornik
From 1158e43ad6fd9107390f14a00b95c61ce489ff20 Mon Sep 17 00:00:00 2001
From: Petr Vobornik <[email protected]>
Date: Fri, 25 Jul 2014 12:39:48 +0200
Subject: [PATCH] baseldap: return 'none' attr level right as unicode string
Returning non-unicode causes serialization into base64 which causes havoc
in Web UI.
https://fedorahosted.org/freeipa/ticket/4454
---
ipalib/plugins/baseldap.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index 610b9b0f11660996a874fe6151e202f8241c5f27..865a357bb45e897e9459adbadfd6e72a939d0706 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -213,7 +213,7 @@ def get_effective_rights(ldap, dn, attrs=None):
if v == 'none':
# the string "none" means "no rights found"
# see https://fedorahosted.org/freeipa/ticket/4359
- v = ''
+ v = u''
rdict[k.strip().lower()] = v
return rdict
--
1.9.3
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel