Modify

Ticket #669 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

SimpleXMLRPCServer in python 2.4

Reported by: Jack Neely <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

Looks like the SimpleXMLRPCServer API changes in 2.5. I'm getting:

Traceback (most recent call last):
  File "/usr/sbin/bcfg2-server", line 62, in ?
    ca=setup['ca'],
  File "/usr/lib/python2.4/site-packages/Bcfg2/Component.py", line 64, in run_component
    register=register, timeout=time_out, ca=ca)
  File "/usr/lib/python2.4/site-packages/Bcfg2/SSLServer.py", line 239, in __init__
    XMLRPCDispatcher.__init__(self, allow_none, encoding)
  File "/usr/lib/python2.4/site-packages/Bcfg2/SSLServer.py", line 30, in __init__
    encoding)
TypeError: __init__() takes exactly 1 argument (3 given)

from bcfg2-server on RHEL 5 with python 2.4.

http://docs.python.org/library/simplexmlrpcserver.html states: "Changed in version 2.5: The allow_none and encoding parameters were added."

Attachments

SSLServer.py.patch (1.4 KB) - added by Jack Neely <[email protected]…> 14 years ago.

Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

This should be fixed in [1dcfea59be46c5179bcbab235786abe52511ec2d] (SVN r5260)

Changed 14 years ago by Jack Neely <[email protected]…>

comment:2 follow-up: ↓ 3 Changed 14 years ago by Jack Neely <[email protected]…>

  • Status changed from closed to reopened
  • Resolution fixed deleted

Sorry...we missed. I've attached a patch against 5260.

comment:3 in reply to: ↑ 2 Changed 14 years ago by solj

  • Status changed from reopened to closed
  • Resolution set to fixed

Replying to Jack Neely <[email protected]>:

Sorry...we missed. I've attached a patch against 5260.

Applied in [a88976e51483e4a9efd45cbbaaefc9e4222d0266] (SVN r5264). Thanks for the patch.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.