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

2006-01-11 Thread Christopher X. Candreva
On Wed, 11 Jan 2006, Tokio Kikuchi wrote:

 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=detailaid=1400128group_id=103atid=100103

Thanks, sorry I missed the existing bug. I really did check !

==
Chris Candreva  -- [EMAIL PROTECTED] -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


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

2006-01-10 Thread Christopher X. Candreva

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;\1gt;', 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 ?

-Chris


==
Chris Candreva  -- [EMAIL PROTECTED] -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


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

2006-01-10 Thread Tokio Kikuchi
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;\1gt;', 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=detailaid=1400128group_id=103atid=100103


-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp