Re: [PATCH] base64 encode all strings before transmitting over xmlrpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch will break backwards compatibility with pre-patch minions.
(is BC a goal?)

The following change will test for this before the call to
deep_base64. As an alternative, deep_base64 could be broken into an
encode and decode function with the proper checks.

-Adam

@@ -649,7 +649,9 @@ class Overlord(object):

if self.interactive:
print retval
-
+
+if isinstance(retval, basestring):
+    from xmlrpclib import Binary
+    retval = return Binary(retval)
+
+ retval = func_utils.deep_base64(retval)
+

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux