Issue 13293: xmlrpc.client encode error (original) (raw)

Issue13293

Created on 2011-10-30 12:55 by luchenue, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg146637 - (view) Author: luchenue (luchenue) Date: 2011-10-30 12:55
import xmlrpc.client server = xmlrpc.client.Server('XXX') print(server.login(b'bHVjaGVudWU=',b'bHVjaGVudWU=')) => xmlrpc.client def dump_string write(escape(value)) dispatch[bytes] = dump_string => def escape(s): s = s.replace("&", "&") bytes can't replace
msg146638 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-30 13:52
binary data should be wrapped with Binary. http://docs.python.org/dev/library/xmlrpc.client.html#binary-objects
msg146656 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-10-30 19:26
New changeset 013d2881beb5 by Florent Xicluna in branch '3.2': Issue #13293: Better error message when trying to marshal bytes using xmlrpc.client. http://hg.python.org/cpython/rev/013d2881beb5
msg146667 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-10-30 23:49
FWIW, I opened a feature request #13297.
History
Date User Action Args
2022-04-11 14:57:23 admin set github: 57502
2011-10-30 23:49:37 flox set messages: +
2011-10-30 19:26:53 python-dev set nosy: + python-devmessages: +
2011-10-30 13:52:51 flox set status: open -> closedcomponents: + Library (Lib), XMLnosy: + floxmessages: + resolution: not a bugstage: resolved
2011-10-30 12:55:54 luchenue create