Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wiki] not working with python-3.9 #239

Closed
optak opened this issue Mar 4, 2021 · 1 comment · Fixed by #242
Closed

[wiki] not working with python-3.9 #239

optak opened this issue Mar 4, 2021 · 1 comment · Fixed by #242
Assignees
Milestone

Comments

@optak
Copy link
Collaborator

optak commented Mar 4, 2021

xmlrpc.client now ignores query in URI ("?action=xmlrpc2")
working version: https://github.com/python/cpython/blob/3.8/Lib/xmlrpc/client.py

send: b'POST /?action=xmlrpc2 HTTP/1.1\r\nHost: wiki.test.redhat.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"<?xml version='1.0'?>\n<methodCall>\n<methodName>getRecentChanges</methodName>\n<params>\n<param>\n<value><dateTime.iso8601>20210301T00:00:00</dateTime.iso8601></value>\n</param>\n</params>\n</methodCall>\n"

new version: https://github.com/python/cpython/blob/3.9/Lib/xmlrpc/client.py

send: b'POST / HTTP/1.1\r\nHost: wiki.test.redhat.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"<?xml version='1.0'?>\n<methodCall>\n<methodName>getRecentChanges</methodName>\n<params>\n<param>\n<value><dateTime.iso8601>20210301T00:00:00</dateTime.iso8601></value>\n</param>\n</params>\n</methodCall>\n"

I tried to encode it ('{0}%3Faction=xmlrpc2'.format(url)) or pass this option as header, without success.

My ideas:

  • file issue for xmlrpc.client
  • use some other library
  • use alternative url if exists
@optak
Copy link
Collaborator Author

optak commented Mar 8, 2021

Issue reported in upstream: https://bugs.python.org/issue43433

psss added a commit that referenced this issue Apr 9, 2021
@psss psss self-assigned this Apr 9, 2021
@psss psss added this to the 0.18 milestone Apr 9, 2021
@psss psss closed this as completed in #242 Apr 19, 2021
psss added a commit that referenced this issue Apr 19, 2021
psss added a commit to mweetman-redhat/did that referenced this issue Jan 30, 2023
Instead of defaulting `path` to the fmf node name we use the
directory where test metadata are stored. This makes is easy to
create virtual test cases and move them freely across the
hierarchy structure without need to define or update path.

Resolves psss#239.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants