[Bug 825570] [NEW] Broken REST API to get member from list given email address (and role).

Stephen A. Goss steveth45 at gmail.com
Sat Aug 13 01:09:55 CEST 2011

Public bug reported:

There is code in src/mailman/rest/lists.py to allow for the REST API to
return a member object given a list, role and email address, but it is
currently broken.

the last line of the member function in lists.py:
        return AMember(self._mlist, role, address)

compare to AMember constructor:

        def __init__(self, member_id):

Attempting to use this part of the API returns a 500 with this

Traceback (most recent call last):
  File "/usr/lib64/python2.6/wsgiref/handlers.py", line 93, in run
    self.result = application(self.environ, self.start_response)
  File "/home/sgoss/mailman_clone/src/mailman/rest/wsgiapp.py", line 58, in __call__
    environ, start_response)
  File "/home/sgoss/phoenix-deploy/lib/python2.6/site-packages/restish-0.12.1-py2.6.egg/restish/app.py", line 17, in __call__
    resource_or_response = self.locate_resource(request)
  File "/home/sgoss/phoenix-deploy/lib/python2.6/site-packages/restish-0.12.1-py2.6.egg/restish/app.py", line 44, in locate_resource
    result = resource_child(request, segments)
  File "/home/sgoss/phoenix-deploy/lib/python2.6/site-packages/restish-0.12.1-py2.6.egg/restish/resource.py", line 194, in resource_child
    result = func(self, request, segments, *match_args, **match_kwargs)
  File "/home/sgoss/mailman_clone/src/mailman/rest/lists.py", line 152, in member
    return AMember(self._mlist, role, address)
TypeError: __init__() takes exactly 2 arguments (4 given)

** Affects: mailman
     Importance: Undecided
         Status: New

** Tags: mailman3

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  Broken REST API to get member from list given email address (and

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list