Bug 799323

Summary: Initial 'emptyarchive' page contains hostname rather urlhost in listinfo page link
Product: Red Hat Enterprise Linux 6 Reporter: Robert Scheck <redhat-bugzilla>
Component: mailmanAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: medium    
Version: 6.2CC: azelinka, ddumas, ovasik, rdassen, robert.scheck, syeghiay
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: mailman-2.1.12-18.el6 Doc Type: Bug Fix
Doc Text:
Cause: urlhost argument was not handled in newlist script Consequence: links on archive page was not created with proper URLs. Hostname was used instead. Fix: urlhost is now handled in newlist script. Result: If urlhost is provided, it's used instead of hostname on archive page.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-20 13:43:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 727267    
Attachments:
Description Flags
mailman-2.1.12-newlist-urlhost.patch none

Description Robert Scheck 2012-03-02 13:47:02 UTC
Description of problem:
Because of the processing sequence in bin/newlist and Mailman/Cgi/create.py,
the initial archive index page for a new list is built with a link to the listinfo page with host name DEFAULT_URL_HOST (hostname(1)) instead of the
host name supplied to newlist with -u (urlhost).

Version-Release number of selected component (if applicable):
mailman-2.1.12-17.el6.x86_64

How reproducible:
Everytime, eg. "/usr/lib/mailman/bin/newlist --urlhost=foo.bar mailman". The
result in the index.html is whatever hostname(1) returns, if no defaults are
changed in the configuration.

Actual results:
Initial 'emptyarchive' page contains hostname rather urlhost in listinfo page
link.

Expected results:
Initial 'emptyarchive' page contains urlhost listinfo page link if specified;
if not then DEFAULT_URL_HOST/hostname(1) content is used.

Comment 1 Robert Scheck 2012-03-02 14:12:24 UTC
I cross-filed case 00609370 in the Red Hat customer portal for this issue.

Comment 2 Robert Scheck 2012-03-02 14:13:18 UTC
Created attachment 567073 [details]
mailman-2.1.12-newlist-urlhost.patch

The attached patch solves this issue for us, please apply.

Comment 4 Jan Kaluža 2012-03-05 10:20:02 UTC
Thanks for the patch. I've tested it and it fixes the bug you described.

Comment 6 Robert Scheck 2012-03-05 10:44:08 UTC
I know, it's a patch from upstream - that is slightly adapted for 2.1.12.

Comment 15 Jan Kaluža 2012-07-31 10:46:34 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: urlhost argument was not handled in newlist script

Consequence: links on archive page was not created with proper URLs. Hostname was used instead.

Fix: urlhost is now handled in newlist script.

Result: If urlhost is provided, it's used instead of hostname on archive page.

Comment 18 errata-xmlrpc 2012-11-20 13:43:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-1474.html