[ mailman-Bugs-1099840 ] error with bad email with % in addError in
htmlformat.py
SourceForge.net
noreply at sourceforge.net
Tue Jan 11 00:56:41 CET 2005
Bugs item #1099840, was opened at 2005-01-10 15:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1099840&group_id=103
Category: Web/CGI
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Sapiro (msapiro)
Assigned to: Nobody/Anonymous (nobody)
Summary: error with bad email with % in addError in htmlformat.py
Initial Comment:
If an e-mail address being added to any of several
properties via the list admin Gui is "bad" and also
happens to contain a '%' character an error similar to
the following occurs.
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
175, in main
change_options(mlist, category, subcat, cgidata, doc)
File "/usr/local/mailman/Mailman/Cgi/admin.py", line
1296, in change_options
gui.handleForm(mlist, category, subcat, cgidata, doc)
File "/usr/local/mailman/Mailman/Gui/Privacy.py",
line 510, in handleForm
GUIBase.handleForm(self, mlist, category, subcat,
cgidata, doc)
File "/usr/local/mailman/Mailman/Gui/GUIBase.py",
line 158, in handleForm
doc.addError(
File "/usr/local/mailman/Mailman/htmlformat.py", line
340, in addError
self.AddItem(Header(3, Bold(FontAttr(
TypeError: not enough arguments for format string
The error actually occurs in evaluation of errmsg %
args where errmsg is 'Bad email address for option
%(property)s: %(val)s' and the value of 'val' in args
contains a '%'.
This occurs in many places in the admin Gui where the
entry is an e-mail address, e.g owner, moderator,
ban_list, accept_these_nonmembers, etc. but not for
example in a mass subscribe list.
email addresses which cause the problem include for
example abc%def.ghi and ab%c at def@ghi but not
ab%c at def.ghi since this latter address is not deemed
invalid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1099840&group_id=103
More information about the Mailman-coders
mailing list