[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-16 Thread OndrejPtak


OndrejPtak  added the comment:

Reproducer:
* create ServerProxy with UPI containing query part, e.g. 
http://example.com?foo=bar
* communicate

Old behavior:
-
send: b'POST /?foo=bar HTTP/1.1\r\nHost: example.com\r\nAccept-Encoding: 
gzip\r\nContent-Type: text/xml\r\nUser-Agent: 
Python-xmlrpc/3.8\r\nContent-Length: 197\r\n\r\n'
send: b"\n\ngetRecentChanges\n\n\n20210301T00:00:00\n\n\n\n"

New behaviour:
--
send: b'POST / HTTP/1.1\r\nHost: example.com\r\nAccept-Encoding: 
gzip\r\nContent-Type: text/xml\r\nUser-Agent: 
Python-xmlrpc/3.9\r\nContent-Length: 197\r\n\r\n'
send: b"\n\ngetRecentChanges\n\n\n20210301T00:00:00\n\n\n\n"

--

___
Python tracker 
<https://bugs.python.org/issue43433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") from python-3.9

2021-03-08 Thread OndrejPtak


New submission from OndrejPtak :

xmlrpc.client proxy behaviour changed and broke tools depending on URI 
containing query part.

Last working version: 
https://github.com/python/cpython/blob/3.8/Lib/xmlrpc/client.py#L1417

Changed behaviour here: 
https://github.com/python/cpython/blob/3.9/Lib/xmlrpc/client.py#L1424

Is this change intended? If so, what is recommended solution for xmlrpc client 
communicating with URI: http://example.com/path?var=foo ?

--
messages: 388263
nosy: OndrejPtak
priority: normal
severity: normal
status: open
title: xmlrpc.client ignores query in URI ("?action=xmlrpc2") from python-3.9
type: behavior
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue43433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43433] xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

2021-03-08 Thread OndrejPtak


Change by OndrejPtak :


--
title: xmlrpc.client ignores query in URI ("?action=xmlrpc2") from python-3.9 
-> xmlrpc.client ignores query in URI ("?action=xmlrpc2") since python-3.9

___
Python tracker 
<https://bugs.python.org/issue43433>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com