I am managing the trans-ru@ mailing list and I'm being unable to accept a person's subscription request due to an error. "The request could not be moderated: A server error occurred. Please contact the administrator." The list is on the "confirm, then moderate" subscription policy.
When this issue occurs, the following comes up in /var/log/mailman3/mailman.log:
{{{ Sep 04 14:21:45 2016 (15656) 127.0.0.1 - - "GET /3.0/lists/trans-ru.lists.fedoraproject.org HTTP/1.1" 200 370 Sep 04 14:21:45 2016 (15656) REST request handler error: 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 "/usr/lib/python3.4/site-packages/mailman/database/transaction.py", line 50, in wrapper rtn = function(args, *kws) File "/usr/lib/python3.4/site-packages/mailman/rest/wsgiapp.py", line 210, in call return super().call(environ, start_response) File "falcon/api.py", line 215, in falcon.api.API.call (falcon/api.c:2453) File "falcon/api.py", line 189, in falcon.api.API.call (falcon/api.c:2073) File "/usr/lib/python3.4/site-packages/mailman/rest/sub_moderation.py", line 88, in on_post self._registrar.confirm(self._token) File "/usr/lib/python3.4/site-packages/mailman/app/registrar.py", line 66, in confirm workflow.restore() File "/usr/lib/python3.4/site-packages/mailman/app/workflow.py", line 151, in restore setattr(self, attr, value) File "/usr/lib/python3.4/site-packages/mailman/app/subscriptions.py", line 110, in user_key assert self.user is not None AssertionError Sep 04 14:21:45 2016 (15656) 127.0.0.1 - - "POST /3.0/lists/trans-ru.lists.fedoraproject.org/requests/de221649b94100dcd365a1bc36a04379d74669c6 HTTP/1.1" 500 59
}}}
There are currently two pending subscription requests, could you tell me which one is causing the error? (I don't want to try and accept a subscription requests without your consent)
It's the one @gmail.com.
The cause for this was more complicated than anticipated, I've submitted a [https://gitlab.com/mailman/mailman/merge_requests/190 patch] upstream and deployed it. I've also accepted the corresponding request for you, so you don't have to do it.
Login to comment on this ticket.