[ mailman-Bugs-1435722 ] Subscription fails with some Language combinations

SourceForge.net noreply at sourceforge.net
Wed Feb 22 17:29:00 CET 2006


Bugs item #1435722, was opened at 2006-02-21 00:41
Message generated for change (Comment added) made by msapiro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1435722&group_id=103

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: (un)subscribing
Group: 2.1 (stable)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Klaus Steinberger (kst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Subscription fails with some Language combinations

Initial Comment:
I have some list with both english(USA) and german
language enabled. If somebody tries to subscribe and
selects german language, they get the "We hit a bug
message". This does not happen if german is the only
option, just if both english and german are enabled.
Also english must be the default to hit the bug.

Here are the error log details:

admin(4095): [----- Mailman Version: 2.1.7 -----]
admin(4095): [----- Traceback ------]
admin(4095): Traceback (most recent call last):
admin(4095):   File "/var/mailman/scripts/driver", line
101, in run_main
admin(4095):     main()
admin(4095):   File
"/var/mailman/Mailman/Cgi/subscribe.py", line 96, in main
admin(4095):     process_form(mlist, doc, cgidata,
language)
admin(4095):   File
"/var/mailman/Mailman/Cgi/subscribe.py", line 176, in
process_form
admin(4095):     mlist.AddMember(userdesc, remote)
admin(4095):   File "/var/mailman/Mailman/MailList.py",
line 899, in AddMember
admin(4095):     msg['Subject'] =
self.GetConfirmJoinSubject(realname, cookie)
admin(4095):   File "/var/mailman/Mailman/MailList.py",
line 216, in GetConfirmJoinSubject
admin(4095):     cset, header_name='subject')
admin(4095):   File
"/var/tmp/mailman-root/var/mailman/pythonlib/email/Header.py",
line 188, in __init__
admin(4095):   File
"/var/tmp/mailman-root/var/mailman/pythonlib/email/Header.py",
line 272, in append
admin(4095): UnicodeError: ASCII decoding error:
ordinal not in range(128)
admin(4095): [----- Python Information -----]
admin(4095): sys.version     =   2.2.2 (#1, Feb 24
2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
admin(4095): sys.executable  =   /usr/bin/python
admin(4095): sys.prefix      =   /usr
admin(4095): sys.exec_prefix =   /usr
admin(4095): sys.path        =   /usr
admin(4095): sys.platform    =   linux2
admin(4095): [----- Environment Variables -----]
admin(4095):    PATH_INFO: /test
admin(4095):    CONTENT_LENGTH: 140
admin(4095):    SERVER_PORT: 443
admin(4095):    HTTP_COOKIE:
site=2802000000691dc6fa43732800000063323164313562353536396239393738616631303133646639393034626532623334636264363564
admin(4095):    SCRIPT_FILENAME:
/var/mailman/cgi-bin/subscribe
admin(4095):    PYTHONPATH: /var/mailman
admin(4095):    SERVER_SOFTWARE: Apache/2.0.51 (Fedora)
admin(4095):    SERVER_ADMIN:
Rechnergruppe at Physik.Uni-Muenchen.DE
admin(4095):    SCRIPT_NAME: /mailman/subscribe
admin(4095):    SCRIPT_URI:
https://lists.physik.uni-muenchen.de/mailman/subscribe/test
admin(4095):    SERVER_SIGNATURE:
<address>Apache/2.0.51 (Fedora) Server at
lists.physik.uni-muenchen.de Port 443</address>
admin(4095):
admin(4095):    REQUEST_METHOD: POST
admin(4095):    HTTP_HOST: lists.physik.uni-muenchen.de
admin(4095):    SCRIPT_URL: /mailman/subscribe/test
admin(4095):    HTTPS: on
admin(4095):    SERVER_PROTOCOL: HTTP/1.1
admin(4095):    QUERY_STRING:
admin(4095):    PATH_TRANSLATED:
/var/www/sites1/lists.physik.uni-muenchen.de/test
admin(4095):    REQUEST_URI: /mailman/subscribe/test
admin(4095):    HTTP_ACCEPT:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
admin(4095):    HTTP_ACCEPT_CHARSET:
ISO-8859-1,utf-8;q=0.7,*;q=0.7
admin(4095):    HTTP_USER_AGENT: Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7.12) Gecko/20050927
Fedora/1.0.7-1.1.fc3.mll.1 Firefox/1.0.7
admin(4095):    HTTP_CONNECTION: keep-alive
admin(4095):    HTTP_REFERER:
https://lists.physik.uni-muenchen.de/mailman/listinfo/test
admin(4095):    SERVER_NAME: lists.physik.uni-muenchen.de
admin(4095):    REMOTE_ADDR: 141.84.29.17
admin(4095):    REMOTE_PORT: 44945
admin(4095):    HTTP_ACCEPT_LANGUAGE:
de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
admin(4095):    UNIQUE_ID: s6td58A2KoEAAHdvB6gAAAAB
admin(4095):    CONTENT_TYPE:
application/x-www-form-urlencoded
admin(4095):    GATEWAY_INTERFACE: CGI/1.1
admin(4095):    DOCUMENT_ROOT:
/var/www/sites1/lists.physik.uni-muenchen.de/
admin(4095):    HTTP_ACCEPT_ENCODING: gzip,deflate
admin(4095):    SERVER_ADDR: 192.54.42.132
admin(4095):    HTTP_KEEP_ALIVE: 300


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

>Comment By: Mark Sapiro (msapiro)
Date: 2006-02-22 08:29

Message:
Logged In: YES 
user_id=1123998

Patch commited in CVS.

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

Comment By: Klaus Steinberger (kst)
Date: 2006-02-21 13:24

Message:
Logged In: YES 
user_id=52018

Thanks! That's really fast response. I built a new RPM for 
my system with this patch and it works like a charm. 
 
Sincerly, 
Klaus 

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

Comment By: Mark Sapiro (msapiro)
Date: 2006-02-21 13:04

Message:
Logged In: YES 
user_id=1123998

Revised patch.

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

Comment By: Mark Sapiro (msapiro)
Date: 2006-02-21 10:17

Message:
Logged In: YES 
user_id=1123998

There are two ways to deal with this bug in your case.

You can avoid it by changing the character set for 'en' in
the language table from 'us-ascii' to 'iso-8859-1'. You
would do this by putting:

add_language('en', 'English (USA)', 'iso-8859-1')

in mm_cfg.py.

Or, you can actually fix it with the attached patch to
Mailman/MailList.py. If possible, try the patch and let us
know how it works for you.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1435722&group_id=103


More information about the Mailman-coders mailing list