ASCII decoding error in membership management

Bug #266335 reported by Ixsnet
2
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-2.1.7/scripts/driver", line 101, in run_main
admin(31507): main()
admin(31507): File
"/opt/mailman-2.1.7/Mailman/Cgi/admin.py", line 197, in
main
admin(31507): show_results(mlist, doc, category,
subcat, cgidata)
admin(31507): File
"/opt/mailman-2.1.7/Mailman/Cgi/admin.py", line 497, in
show_results
admin(31507):
form.AddItem(membership_options(mlist, subcat, cgidata,
doc, form))
admin(31507): File
"/opt/mailman-2.1.7/Mailman/Cgi/admin.py", line 869, in
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://sourceforge.net/tracker/index.php?func=detail&aid=1471487&group_id=103&atid=100103]

Tags: web-cgi
Revision history for this message
Mark Sapiro (msapiro) wrote :

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.

Revision history for this message
Ixsnet (ixsnet) wrote :

It seems, the problem is caused by an illegal email address
"marionmüller@t-online.de".

And yes, this was an upgrade from 2.0.x.

Would an illegal address such as this be filtered nowadays?

Revision history for this message
Mark Sapiro (msapiro) wrote :

> Would an illegal address such as this be filtered nowadays?

Yes, such an address couldn't be added in the first place.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.