[Mailman-Users] Bug in 2.1.7, can't edit Public HTML pages & text files

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Tue Jan 10 22:28:47 CET 2006


Christopher X. Candreva wrote:
> Mailman is telling me there is a bug whenever I try to submit a page from 
> the "Edit the public HTML pages and text files" menu. The page returned 
> says:
> 
> Bug in Mailman version 2.1.7
> 
> We're sorry, we hit a bug!
> 
> Please inform the webmaster for this site of this problem. Printing of 
> traceback and other system information has been explicitly inhibited, but 
> the webmaster can find this information in the Mailman error logs. 
> 
> The most usefull thing I've found in the logs is:
> 
> Jan 10 15:52:55 2006 admin(6592): 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> admin(6592): [----- Mailman Version: 2.1.7 -----]
> admin(6592): [----- Traceback ------]
> admin(6592): Traceback (most recent call last):
> admin(6592):   File "/home/mailman/scripts/driver", line 101, in run_main
> admin(6592):     main()
> admin(6592):   File "/home/mailman/Mailman/Cgi/edithtml.py", line 125, in 
> main
> admin(6592):     ChangeHTML(mlist, cgidata, template_name, doc)
> admin(6592):   File "/home/mailman/Mailman/Cgi/edithtml.py", line 160, in 
> ChangeHTML
> admin(6592):     code = re.sub(r'<([/]?script.*?)>', r'&lt;\1&gt;', code)
> admin(6592): NameError: global name 're' is not defined
> admin(6592): [----- Python Information -----]
> admin(6592): sys.version     =   2.4.2 (#1, Nov 11 2005, 14:28:34)
> [GCC 3.4.4]
> 
> I would be surprised if I was the only person to try to submit a changed 
> HTML/text page in 2.1.7, but I suppose it's possible. However I haven't 
> found anything in a search, and check_perms tells me everything is OK.
> 
> Have I done something stupid, or is it a real bug and I should open a bug 
> report ?
> 
Sorry for the inconvenience but I've put a new bug in the code while 
tighten up the security of the script.  Work around is to put a line

import re

in the top part of the Mailman/Cgi/edithtml.py.

The bug was reported in
http://sourceforge.net/tracker/index.php?func=detail&aid=1400128&group_id=103&atid=100103


-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/



More information about the Mailman-Users mailing list