P-EB / mailman3-client

This is the Mailman3 client REST API package for debian
GNU Lesser General Public License v3.0
1 stars 1 forks source link

KeyError in u'moderation_reasons' #1

Open logmod opened 7 years ago

logmod commented 7 years ago

Hi,

when I create a new list and then send a message from an unsubscribed e-mail to this list, I get a reply saying: The message is being held because: N/A

As a moderator I get an info mail to enter the dashboard or to reply with approved: [list-password] as first line in the body. (Which password by the way? How would I set this?).

When I enter the dashboard to view the held messages the following exception occurs:

Request URL: http://example.com:8000/mailman3/lists/testlist.example.com/held_messages Django Version: 1.8.17 Exception Location: /opt/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py in held, line 443 Python Executable: /opt/mailman/venv/bin/python2 Python Version: 2.7.9

Traceback:
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/views/generic/base.py" in view
  71.             return self.dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/generic.py" in dispatch
  67.         return super(MailingListView, self).dispatch(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/views/generic/base.py" in dispatch
  89.         return handler(request, *args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/utils/decorators.py" in _wrapper
  34.             return bound_func(*args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/auth/decorators.py" in wrapper
  81.             return fn(*args, **kwargs)
File "/opt/mailman/mailman-bundler/eggs/Django-1.8.17-py2.7.egg/django/utils/decorators.py" in bound_func
  30.                 return func.__get__(self, type(self))(*args2, **kwargs2)
File "/opt/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/list.py" in get
  387.         held_messages = utils.paginate(request, self.mailing_list.held, 20)
File "/opt/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py" in held
  443.                            moderation_reasons=entry['moderation_reasons'],

Exception Type: KeyError at /mailman3/lists/testlist.example.com/held_messages
Exception Value: u'moderation_reasons'

I have installed the apps via mailman-bundler.git

Regards Logmod

ghost commented 7 years ago

@logmod the official mailman bugtracker is here: https://gitlab.com/mailman/mailman

However, I believe the issue you have is known and it was fixed in a later mailman version already available. The problem is that you are getting an outdated version of mailman because mailman-bundler is no longer supported: https://gitlab.com/mailman/mailman-bundler/blob/master/README.rst

P-EB commented 6 years ago

@JonasT @logmod I'm sorry, I admit I did not follow this github repo for a long time as the official repo for the debian package is now on git.debian.org.

I probably should put some disclaimer somewhere.

Cheers.