ASCII decoding error in membership management
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
New
|
Medium
|
Unassigned |
Bug Description
When opening the list membership management view in the
admin interface, a notice about hitting a bug in 2.1.7
appears.
The error log has some more information:
admin(31507): [----- Mailman Version: 2.1.7 -----]
admin(31507): [----- Traceback ------]
admin(31507): Traceback (most recent call last):
admin(31507): File
"/opt/mailman-
admin(31507): main()
admin(31507): File
"/opt/mailman-
main
admin(31507): show_results(mlist, doc, category,
subcat, cgidata)
admin(31507): File
"/opt/mailman-
show_results
admin(31507):
form.AddItem(
doc, form))
admin(31507): File
"/opt/mailman-
membership_options
admin(31507): all = [_m.encode() for _m in
mlist.getMembers()]
admin(31507): UnicodeError: ASCII decoding error:
ordinal not in range(128)
admin(31507): [----- Python Information -----]
admin(31507): sys.version = 2.2.3 (#1, Nov 11
2003, 17:44:56)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-113)]
admin(31507): sys.executable = /usr/bin/python2
admin(31507): sys.prefix = /usr
admin(31507): sys.exec_prefix = /usr
admin(31507): sys.path = /usr
admin(31507): sys.platform = linux2
[http://
Did you just upgrade from Mailman 2.1.2 or older?
It appears that this list has one or more members with
(invalid?) non-ascii characters in their email address. I
think any version from 2.1.3 on would throw this exception,
and no recent version would allow the address to be added.
You might try something like
bin/list_members listname | egrep '[^[:alnum:]@.-]'
to find the offending address.