View Issue Details

IDProjectCategoryView StatusLast Update
0017876CentOS-7mailmanpublic2020-11-21 19:57
Status newResolutionopen 
Platformx86_64OScentosOS Version7
Product Version7.9.2009 
Target VersionFixed in Version 
Summary0017876: mailman 2.1.15-30, affecting web/privacy/sender page
DescriptionWhen attempting to change values on the web/privacy/sender admin UI page, saving results in an an error. /var/log/mailman/error log shows:
admin(28663): [----- Mailman Version: 2.1.15 -----]
admin(28663): [----- Traceback ------]
admin(28663): Traceback (most recent call last):
admin(28663): File "/usr/lib/mailman/scripts/driver", line 112, in run_main
admin(28663): main()
admin(28663): File "/usr/lib/mailman/Mailman/Cgi/", line 195, in main
admin(28663): change_options(mlist, category, subcat, cgidata, doc)
admin(28663): File "/usr/lib/mailman/Mailman/Cgi/", line 1363, in chan
admin(28663): gui.handleForm(mlist, category, subcat, cgidata, doc)
admin(28663): File "/usr/lib/mailman/Mailman/Gui/", line 604, in han
admin(28663): GUIBase.handleForm(self, mlist, category, subcat, cgidata, doc
admin(28663): File "/usr/lib/mailman/Mailman/Gui/", line 172, in han
admin(28663): error = Utils.websafe(str(error))
admin(28663): UnboundLocalError: local variable 'error' referenced before assign
admin(28663): [----- Python Information -----]
admin(28663): sys.version = 2.7.5 (default, Apr 2 2020, 13:16:51)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
admin(28663): sys.executable = /usr/bin/python
admin(28663): sys.prefix = /usr
admin(28663): sys.exec_prefix = /usr
admin(28663): sys.path = ['/usr/lib/mailman/pythonlib', '/usr/lib/mailm
an', '/usr/lib/mailman/scripts', '/usr/lib/mailman', '/usr/lib64/',
Steps To ReproduceNavigate to mailman/admin/web/privacy/sender webUI page on a system running mailman. Change value of "automatically discarded" setting (near bottom) from false to true. Press save button.
Additional InformationTo resolve, change lines 171-174 to:
            except Errors.EmailAddressError, error:
                error = Utilswebsafe(str(error))
                    _('Bad email address for option %(property)s: %(error)s'))

(add "error" as second value to except, and replace "val" with "error" in message string).
TagsManaged Service Provider


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-11-21 19:57 spotter New Issue
2020-11-21 19:57 spotter Tag Attached: Managed Service Provider