tinyerp-mailgate.py: request on wrong xmlrpc object path

Bug #270826 reported by Xavier ALT
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Executing tinyerp-mailgate.py from fetchmail, i got '<ProtocolError for 127.0.0.1:8062/object: 404 Not Found>', see the traceback following.

The xmlrpc request seems to be done on SERVER/object and not on SERVER/xmlrpc/object, which is the correct path.
See the one-liner patch attached.

#***************************.*Traceback (most recent call last):
  File "/home/prod/openerp/ajm/OpenERP-4.2/server/bin/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py", line 305, in <module>
    parser = email_parser(options.userid, options.password, options.section, options.email, options.default, dbname=options.dbname)
  File "/home/prod/openerp/ajm/OpenERP-4.2/server/bin/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py", line 50, in __init__
    self.section_id = self.rpc('crm.case.section', 'search', [('code','=',section)])[0]
  File "/home/prod/openerp/ajm/OpenERP-4.2/server/bin/addons/crm/scripts/tinyerp-mailgate/tinyerp-mailgate.py", line 42, in __call__
    return self.rpc.execute(self.dbname, self.user_id, self.passwd, *request)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1191, in request
    headers
xmlrpclib.ProtocolError: <ProtocolError for 127.0.0.1:8062/object: 404 Not Found>
fetchmail: MDA returned nonzero status 1
 not flushed
fetchmail: POP3> QUIT

Revision history for this message
Xavier ALT (dex-phx) wrote :
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

Hi,

I confirm I saw this issue on 4.2.2 at least last time I implemented fectchmail. I didn't check closely, but the patch looks grossly what I did to fix the bug (was before you set up that launchpad stuff).

Changed in openobject-addons:
status: New → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
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.