-
Notifications
You must be signed in to change notification settings - Fork 63
proxiedtransport's send_request method is missing a parameter #127
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
Comments
Another issue is that xmlrpc has specifies the first agrument as the host and not a connection handle. So this would need to be updated. |
Hello Sean, thanks for your request. Unfortunately, I have problems to reproduce your issue. We have within testlinkhelper_test.py some pytests to check the setup of the connection with proxie, but none testing the communication itself. Maybe that is the gap, cause the existing tests passed with 3.7.4, 3.7.6 and 3.8.1. To solve your problem, I need a little more infos
That would be very helpful, |
Hi @lczub , I wanted to apologize for taking so long to get back to you (the github notification email was lost in my inbox so I didn't see your reply). Here is the traceback:
Note that testlinkclient.py is a layer we have built above the TestLinkAPI package. |
Hello Sean, thanks for your traceback. A workaround for you might be to directly change the problematic overridden send_request method and add an optional debug argument in src/testlink/proxiedtransport.py
The hole content of src/testlink/proxiedtransport.py looks as it is a copy&paste of the py27 xmlrpclib.Transport behavior. It is from 2015 pull request #36 and as you mention, Py3 has changed in the meantime, so it requires a general rework. This will take a while, because I will first try to set up a proxy test environment to understand, how proxy transport works. Hope, that above workaround will not direct you to a different hidden P3 proxy isssue. |
Hi. I have another question. Why in def send_request(self, host, handler, request_body, debug): and in overridden method from class ProxiedTransport ( def send_request(self, connection, handler, request_body, debug=False)
After fixing problem with This bug can be fixed as follows: def send_request(self, host, handler, request_body, debug=False):
"""Send request header
:param httplib.HTTPConnection connection: Connection handle
:param str handler: Target RPC handler
:param str request_body:XML-RPC body
"""
connection = super().send_request(host, handler, request_body, debug) Can u also check this code? If it works - can I make pull request? |
Hello Hellboy, thanks for your good questions and suggestions. my problem is, I have currently no proxy test environment. My impression during the code inspection for #127 (comment) was, that most parts of the overwritten code parts from #36 might be not really necessary any more. But I can not test it currently and haven't found time to rework it. I hope I can do it during teh next weekend. Luiko |
not tested with py27 might be incompatible
Hello seanmlyons22 and hellboy81, I published I first draft for the proxiedtransport refactoring which should support py27 and py37/py38 on Branch dev127-proxietransport. It is just tested with simple pytests and not a real proxy test environment You find the related changed files in commit 891b041. If you could run a test with your proxy environment would be very helpful. Regards Luiko |
As of the xmlrpc version in Python version 3.7.6 the send_request method of class Transport that is overridden by proxiedtransport.py::send_request is missing the debug parameter.
Steps to reproduce
The text was updated successfully, but these errors were encountered: