xmlrpc filebug API raises TypeError exception

Bug #57742 reported by Brad Bollenbach
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Medium
Björn Tillenius

Bug Description

If you don't specify any arguments to the xmlrpc API, you get some strange behaviour:

>>> from xmlrpclib import ServerProxy
>>> s = ServerProxy("https://xmlrpc.launchpad.net/malone/")
>>> s.filebug()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xmlrpclib.py", line 1032, in __call__
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xmlrpclib.py", line 1319, in __request
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xmlrpclib.py", line 1083, in request
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xmlrpclib.py", line 1222, in _parse_response
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/xmlrpclib.py", line 745, in close
xmlrpclib.Fault: <Fault -1: 'Unexpected Zope exception: TypeError: Missing argument to filebug(): params'>

This should instead first raise an Unauthorized exception, because the user didn't even log in! BjornT thinks this may be a Zope 3 issue.

Tags: api lp-bugs oops
Changed in malone:
importance: Untriaged → Medium
status: Unconfirmed → Confirmed
Changed in malone:
assignee: nobody → bjornt
Revision history for this message
Eleanor Berger (intellectronica) wrote :

Is this a WONTFIX, now that we can file bugs using the REST API?

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 57742] Re: xmlrpc filebug API raises TypeError exception

On Wed, Jan 28, 2009 at 09:14:17PM -0000, Tom Berger wrote:
> Is this a WONTFIX, now that we can file bugs using the REST API?

Yes, no need to do any bug fixes for XML-RPC interface.

    status wontfix

Changed in malone:
status: Confirmed → Won't Fix
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.