Issue 5040: Bug of CGIXMLRPCRequestHandler (original) (raw)

Issue5040

Created on 2009-01-24 10:19 by WayneHuang, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
xmlrpc-test.diff bquinlan,2009-03-28 16:02 Tests that demonsrate this problem
xmlrpc-fix.diff bquinlan,2009-03-28 16:25 Fix (see tests in previous attachment)
issue5040-py3k.diff orsenthil,2009-04-01 19:00
issue5040-py27.diff orsenthil,2009-04-01 19:00
issue5040-py3k.diff georg.brandl,2009-04-01 19:43 rev patch 1
issue5040-py27.diff georg.brandl,2009-04-01 19:43 rev patch 2
Messages (4)
msg80440 - (view) Author: Wayne Huang (WayneHuang) Date: 2009-01-24 10:19
I met a bug of CGIXMLRPCRequestHandler in Python3.0. Because of the bug, I couldn't use RPC in Apache CGI. The version of my Python 3.0 is "Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] win32". The code of my client is follow. s = xmlrpc.client.ServerProxy('http://localhost/cgi-bin/rpc.py') print(s.system.listMethods()) The code of my server in Apache's cgi-bin is follow #!C:/Python30/python.exe from xmlrpc.server import * handler=CGIXMLRPCRequestHandler() handler.register_introspection_functions() handler.handle_request() When I run the client code,some error of parser raise. I found it is the matter of 'Content-Length' in the HTTP Response of CGIXMLRPCRequestHandler,it is a wrong number.
msg84310 - (view) Author: Brian Quinlan (bquinlan) * (Python committer) Date: 2009-03-28 16:02
It turns out that there are a bunch of issues with the py3k XML-RPC client and server. Attached as some tests that demonstrate them.
msg85076 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-04-01 19:00
CGIXMLRPCRequestHandler was fixed with changes 70954. Modified the patches for Python trunk. Added the Content-Length tests to handle_request
msg85087 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2009-04-01 20:27
Applied: -py27.diff (rev patch 1) and -py3k.diff (original).
History
Date User Action Args
2022-04-11 14:56:44 admin set github: 49290
2009-04-01 20:27:02 orsenthil set status: open -> closedmessages: +
2009-04-01 19:43:50 georg.brandl set files: + issue5040-py27.diff
2009-04-01 19:43:36 georg.brandl set files: + issue5040-py3k.diff
2009-04-01 19:00:57 orsenthil set files: + issue5040-py27.diff
2009-04-01 19:00:21 orsenthil set files: + issue5040-py3k.diffnosy: + orsenthilmessages: + assignee: orsenthilresolution: fixed
2009-03-28 16:29:52 bquinlan set type: performance -> behavior
2009-03-28 16:25:44 bquinlan set files: + xmlrpc-fix.diff
2009-03-28 16:02:51 bquinlan set files: + xmlrpc-test.diffnosy: + bquinlanmessages: + keywords: + patch
2009-01-24 10:19:53 WayneHuang create