[New-bugs-announce] [issue15253] xmlrpclib.ServerProxy does not support 2-tuple value for uri parameter
Vincent Pelletier
report at bugs.python.org
Thu Jul 5 10:27:14 CEST 2012
New submission from Vincent Pelletier <plr.vincent at gmail.com>:
SafeTransport class supports a 2-tuple as uri, in order to pass x509 parameters to httplib.HTTPSConnection .
xmlrpclib.ServerProxy.__init__ fails when given such tuple, because it calls:
urllib.splittype(uri)
without checking uri type first.
Minimal test case to reproduce is:
import xmlrpclib
xmlrpclib.ServerProxy(('https://example.com', {}))
----------
messages: 164676
nosy: vpelletier
priority: normal
severity: normal
status: open
title: xmlrpclib.ServerProxy does not support 2-tuple value for uri parameter
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15253>
_______________________________________
More information about the New-bugs-announce
mailing list