tinyERp does not work with Python2.5 due to changes in SimpleXMLRPCServer.py

Bug #113954 reported by Juan Jose Pablos
4
Affects Status Importance Assigned to Milestone
tinyerp-server (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: tinyerp-server

A new funcionality on python 2.5 breaks the ability for tinyerp-server to start

From "What's New in Python 2.5" document:

Library: The SimpleXMLRPCServer and DocXMLRPCServer classes now have a rpc_paths attribute that constrains XML-RPC operations to a limited set of URL paths; the default is to allow only '/' and '/RPC2'. Setting rpc_paths to None or an empty tuple disables this path checking.

A way to fix in tinyerp is to disable this path checking:

*** netsvc.py 2007-05-11 09:38:15.000000000 +0200
--- netsvc.new 2007-05-11 09:38:04.000000000 +0200
***************
*** 196,201 ****
--- 196,202 ----
                        self.name=name

  class GenericXMLRPCRequestHandler:
+ rpc_paths = None # this line correct error
        def _dispatch(self, method, params):
                import traceback
                try:

See more info here:
http://tinyerp.org/forum/viewtopic.php?t=3296

Revision history for this message
Dabian (dabian) wrote :

I had the same problem and found the same fix on the net.
The fix works for me. The file to change is /usr/lib/tinyerp-server/netsvc.py
I'm running Ubuntu Feisty Fawn .

Changed in tinyerp-server:
status: Unconfirmed → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.