ASCII decoding error

Bug #265976 reported by Rangerrick-users
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Invalid
Medium
Unassigned

Bug Description

I get the following when trying to hit the "members"
page on a mailing list we have. If you need more
information for debugging or similar, let me know.

Traceback (most recent call last):
  File "/var/mailman/scripts/driver", line 87, in run_main
    main()
  File "/var/mailman/Mailman/Cgi/admin.py", line 192,
in main
    show_results(mlist, doc, category, subcat, cgidata)
  File "/var/mailman/Mailman/Cgi/admin.py", line 491,
in show_results
    form.AddItem(membership_options(mlist, subcat,
cgidata, doc, form))
  File "/var/mailman/Mailman/Cgi/admin.py", line 799,
in membership_options
    all = [_m.encode() for _m in mlist.getMembers()]
UnicodeError: ASCII decoding error: ordinal not in
range(128)

Python information:

Variable Value
sys.version 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC
3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
sys.executable /usr/bin/python
sys.prefix /usr
sys.exec_prefix /usr
sys.path /usr
sys.platform linux2

[http://sourceforge.net/tracker/index.php?func=detail&aid=828381&group_id=103&atid=100103]

Tags: web-cgi
Revision history for this message
Latchkey (latchkey) wrote :

I recently posted this on the developer mailing list...no
response...=(

------ Forwarded Message
From: Jon Scott Stevens
Date: Tue, 21 Oct 2003 15:22:56 -0700
To: <email address hidden>
Subject: [Mailman-Developers] Bug in mailman 2.1.3

Hello everyone.

I just got the stack trace below from one of my list
admins...not sure how
he screwed things up...but I figured I would let you
know...based on the
traceback, it seems that he somehow got a strange character
into the list of
members...

[share] 3:16pm ~ > ./bin/check_db -v sfindie-fence
List: sfindie-fence
   /usr/local/mailman/lists/sfindie-fence/config.pck: okay
   /usr/local/mailman/lists/sfindie-fence/config.pck.last: okay
   /usr/local/mailman/lists/sfindie-fence/config.db: okay
   /usr/local/mailman/lists/sfindie-fence/config.db.last: okay

[share] 3:17pm ~ > ./bin/list_members -u sfindie-fence
            [no output]
[share] 3:18pm ~ > ./bin/list_members -i sfindie-fence
Êknights_bishop@yahooooooo.com
[share] 3:18pm ~ > ./bin/list_members -i sfindie-fence > bad.txt
[share] 3:19pm ~ > ./bin/remove_members -f bad.txt sfindie-fence

Yup...removing that address solved the problem.

Note: this list admin only has access to the web interface.
So, somehow he
was able to send corrupt data to the server which caused
this problem.
Probably not a good thing. =)

---------------------------------------------------------------------------

Bug in Mailman version 2.1.3

We're sorry, we hit a bug!

If you would like to help us identify the problem, please
email a copy of
this page to the webmaster for this site with a description
of what
happened. Thanks!
Traceback:

Traceback (most recent call last):
  File "/usr/local/mailman/scripts/driver", line 87, in
run_main
    main()
  File "/usr/local/mailman/Mailman/Cgi/admin.py", line 192,
in main
    show_results(mlist, doc, category, subcat, cgidata)
  File "/usr/local/mailman/Mailman/Cgi/admin.py", line 491,
in show_results
    form.AddItem(membership_options(mlist, subcat, cgidata,
doc, form))
  File "/usr/local/mailman/Mailman/Cgi/admin.py", line 799, in
membership_options
    all = [_m.encode() for _m in mlist.getMembers()]
UnicodeError: ASCII decoding error: ordinal not in range(128)

Revision history for this message
Barry Warsaw (barry) wrote :

It was possible in older versions of Mailman to get
non-ascii characters into the email addresses. Mailman
2.1.3 should prevent this, and removing invalid addresses as
you've done below is the way to fix older lists.

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.