Red Hat Bugzilla – Bug 799323
Initial 'emptyarchive' page contains hostname rather urlhost in listinfo page link
Last modified: 2012-11-20 08:43:36 EST
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):
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.
Initial 'emptyarchive' page contains hostname rather urlhost in listinfo page
Initial 'emptyarchive' page contains urlhost listinfo page link if specified;
if not then DEFAULT_URL_HOST/hostname(1) content is used.
I cross-filed case 00609370 in the Red Hat customer portal for this issue.
Created attachment 567073 [details]
The attached patch solves this issue for us, please apply.
Thanks for the patch. I've tested it and it fixes the bug you described.
I know, it's a patch from upstream - that is slightly adapted for 2.1.12.
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.
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.
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.