2.1.14 GUI crash: ALLOW_SENDER_OVERRIDES AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Incomplete
|
High
|
Mark Sapiro |
Bug Description
I just upgraded to 2.1.14 from 2.1.12. When trying to login to the admin interface for a list, Mailman crashes and I get a "bug" message in the browser. The Mailman error log contains this:
...
admin(24739): PYTHONPATH: /opt/mailman
admin(24739): SCRIPT_FILENAME: /opt/mailman/
admin(24739): SERVER_ADMIN: [edited out]
admin(24739): HTTP_HOST: [edited out]
admin(24739): HTTPS: on
admin(24739): HTTP_CONNECTION: keep-alive
admin(24739): HTTP_CACHE_CONTROL: max-age=0
admin(24739): REQUEST_URI: /mailman/
admin(24739): HTTP_ACCEPT: application/
admin(24739): GATEWAY_INTERFACE: CGI/1.1
admin(24739): REMOTE_PORT: 36978
admin(24739): HTTP_ACCEPT_
admin(24739): CONTENT_TYPE: application/
admin(24739): HTTP_ACCEPT_
admin(24739): UNIQUE_ID: TJuulolSrxMAAGC
Sep 23 12:47:11 2010 admin(24744): @@@@@@@
admin(24744): [----- Mailman Version: 2.1.14 -----]
admin(24744): [----- Traceback ------]
admin(24744): Traceback (most recent call last):
admin(24744): File "/opt/mailman/
admin(24744): main()
admin(24744): File "/opt/mailman/
admin(24744): change_
admin(24744): File "/opt/mailman/
admin(24744): gui.handleForm(
admin(24744): File "/opt/mailman/
admin(24744): for item in self.GetConfigI
admin(24744): File "/opt/mailman/
admin(24744): if mm_cfg.
admin(24744): AttributeError: 'module' object has no attribute 'ALLOW_
admin(24744): [----- Python Information -----]
admin(24744): sys.version = 2.4.4 (#1, Jan 9 2007, 23:31:33) [C]
admin(24744): sys.executable = /usr/bin/python
admin(24744): sys.prefix = /usr
admin(24744): sys.exec_prefix = /usr
admin(24744): sys.path = ['/opt/
admin(24744): sys.platform = sunos5
...
By editing the /Mailman/
# Suppression of Sender header modification
#if mm_cfg.
# rtn.append(
# ('include_
# (_('No'), _('Yes')), 0,
# _("""Should the <tt>Sender</tt> header be rewritten for this
# mailing list to avoid stray bounces? <em>Yes</em> is
# recommended."""),
# _("""<a href="http://
# 2822</a> defines the <tt>Sender</tt> header and defines it
# as "the mailbox of the agent responsible for the actual
# transmission of the message." Mailman replaces this header
# by default with the list's bounce address.
# <p>While it is debatable if Mailman is such an agent, setting
# this header helps directing bounces from some broken MTAs to
# the right destination. On the other hand, some mail
# readers show unexpected behaviour if this header is set (like
# missing addresses in forwarded mails and copies sent to the
# bounce address on reply-to-all), so it can be disabled
# here."""))
# )
How did you upgrade? The error says you do not have a Mailman 2.1.14 Defaults.py.
Did you by chance make changes in your prior Defaults.py and then restore the old one after the upgrade? If so, this is exactly why you should never change Defaults.py and make all customizations in mm_cfg.py.
A better work around would be to simply add
ALLOW_SENDER_ OVERRIDES = Yes
to mm_cfg.py.