Bug 1045783

Summary: mailman crashes when moderating a message
Product: Red Hat Enterprise Linux 6 Reporter: John Byrd <jbyrd>
Component: mailmanAssignee: Pavel Šimerda (pavlix) <psimerda>
Status: CLOSED WORKSFORME QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6CC: imc, psklenar
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-20 10:09:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Byrd 2013-12-21 23:41:54 UTC
Description of problem:

Using RHEL 6.5, if you install and operate a moderated mailing list via the Web interface using mailman, mailman will crash when the moderator selects and approves a message for the mailing list.

Call stack on crash will look like the following:

> admin(20706): Traceback (most recent call last):
> admin(20706):   File "/usr/lib/mailman/scripts/driver", line 112, in
> run_main
> admin(20706):     main()
> admin(20706):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 165,
> in main
> admin(20706):     process_form(mlist, doc, cgidata)
> admin(20706):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 716,
> in process_form
> admin(20706):     forward, forwardaddr)
> admin(20706):   File "/usr/lib/mailman/Mailman/ListAdmin.py", line 167, in
> HandleRequest
> admin(20706):     forward, addr)
> admin(20706):   File "/usr/lib/mailman/Mailman/ListAdmin.py", line 254, in
> __handlepost
> admin(20706):     g(msg, 1)
> admin(20706): AttributeError: Generator instance has no __call__ method

Version-Release number of selected component (if applicable):

mailman.x86_64, 3:2.1.12-18.el6 

Mark Sapiro points out on the mailman mailing list that there is an incompatibility between Python 2.6 and mailman 2.1.12.  He also references 
a patch that causes this problem to go away:

https://mail.python.org/pipermail/mailman-users/2013-December/075829.html

Mailman appears to work correctly upon install, but you can't actually moderate any messages with the current RHEL6 version shipping.

Comment 9 Pavel Šimerda (pavlix) 2016-07-20 10:09:31 UTC
(In reply to John Byrd from comment #0)
> Description of problem:
> 
> Using RHEL 6.5, if you install and operate a moderated mailing list via the
> Web interface using mailman, mailman will crash when the moderator selects
> and approves a message for the mailing list.
> 
> Call stack on crash will look like the following:
> 
> > admin(20706): Traceback (most recent call last):
> > admin(20706):   File "/usr/lib/mailman/scripts/driver", line 112, in
> > run_main
> > admin(20706):     main()
> > admin(20706):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 165,
> > in main
> > admin(20706):     process_form(mlist, doc, cgidata)
> > admin(20706):   File "/usr/lib/mailman/Mailman/Cgi/admindb.py", line 716,
> > in process_form
> > admin(20706):     forward, forwardaddr)
> > admin(20706):   File "/usr/lib/mailman/Mailman/ListAdmin.py", line 167, in
> > HandleRequest
> > admin(20706):     forward, addr)
> > admin(20706):   File "/usr/lib/mailman/Mailman/ListAdmin.py", line 254, in
> > __handlepost
> > admin(20706):     g(msg, 1)
> > admin(20706): AttributeError: Generator instance has no __call__ method
> 
> Version-Release number of selected component (if applicable):
> 
> mailman.x86_64, 3:2.1.12-18.el6 
> 
> Mark Sapiro points out on the mailman mailing list that there is an
> incompatibility between Python 2.6 and mailman 2.1.12.  He also references 
> a patch that causes this problem to go away:
> 
> https://mail.python.org/pipermail/mailman-users/2013-December/075829.html
> 
> Mailman appears to work correctly upon install, but you can't actually
> moderate any messages with the current RHEL6 version shipping.

This patch has apparently been already applied. I'm looking at the source file in mailman-2.1.12-25.el6.x86_64. Please reopen or file a new bug report if you still have issues with the latest version.

Comment 10 Ian Collier 2016-07-20 10:20:33 UTC
Correct, it was patched for bug 765807 which appears to be a duplicate of this one.