This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bug of CGIXMLRPCRequestHandler
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: WayneHuang, bquinlan, orsenthil
Priority: normal Keywords: patch

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: issue5040-py27.diff (rev patch 1) and issue5040-py3k.diff
(original).
History
Date User Action Args
2022-04-11 14:56:44adminsetgithub: 49290
2009-04-01 20:27:02orsenthilsetstatus: open -> closed

messages: + msg85087
2009-04-01 19:43:50georg.brandlsetfiles: + issue5040-py27.diff
2009-04-01 19:43:36georg.brandlsetfiles: + issue5040-py3k.diff
2009-04-01 19:00:57orsenthilsetfiles: + issue5040-py27.diff
2009-04-01 19:00:21orsenthilsetfiles: + issue5040-py3k.diff

nosy: + orsenthil
messages: + msg85076

assignee: orsenthil
resolution: fixed
2009-03-28 16:29:52bquinlansettype: performance -> behavior
2009-03-28 16:25:44bquinlansetfiles: + xmlrpc-fix.diff
2009-03-28 16:02:51bquinlansetfiles: + xmlrpc-test.diff

nosy: + bquinlan
messages: + msg84310

keywords: + patch
2009-01-24 10:19:53WayneHuangcreate