Skip to content

Fix getting a list member through the 3.1 API

There's a bug when trying to get a list member through the 3.1 API, using the lists endpoint. A traceback occurs:

Traceback (most recent call last):
  File "/usr/lib64/python3.4/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "src/mailman/database/transaction.py", line 57, in wrapper
    rtn = function(*args, **kws)
  File "src/mailman/rest/wsgiapp.py", line 104, in __call__
    return super().__call__(environ, start_response)
  File ".tox/py34/lib/python3.4/site-packages/falcon/api.py", line 178, in __call__
    responder, params, resource = self._get_responder(req)
  File "src/mailman/rest/wsgiapp.py", line 156, in _get_responder
    req, path_segments, *positional, **keyword)
  File "src/mailman/rest/lists.py", line 158, in member
    return AMember(request.context['api_version'], member.member_id)
  File "src/mailman/rest/members.py", line 124, in __init__
    member_id = UUID(hex=member_id_string)
  File "/usr/lib64/python3.4/uuid.py", line 134, in __init__
    hex = hex.replace('urn:', '').replace('uuid:', '')
AttributeError: 'UUID' object has no attribute 'replace

This branch fixes it.

Merge request reports