Ticket #669 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

SimpleXMLRPCServer in python 2.4

Reported by: Jack Neely <jjneely@…> 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 <jjneely@…> 6 months ago.

Change History

  Changed 6 months ago by desai

  • status changed from new to closed
  • resolution set to fixed

This should be fixed in [5260]

Changed 6 months ago by Jack Neely <jjneely@…>

follow-up: ↓ 3   Changed 6 months ago by Jack Neely <jjneely@…>

  • status changed from closed to reopened
  • resolution fixed deleted

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

in reply to: ↑ 2   Changed 6 months ago by solj

  • status changed from reopened to closed
  • resolution set to fixed

Replying to Jack Neely <jjneely@ncsu.edu>:

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

Applied in [5264]. Thanks for the patch.

Add/Change #669 (SimpleXMLRPCServer in python 2.4)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.