Bug 447784 - List-Archive URL for private archives broken
Summary: List-Archive URL for private archives broken
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mailman
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Novotny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-21 19:20 UTC by Jan Kratochvil
Modified: 2009-03-31 09:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-31 09:30:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
a patch (775 bytes, patch)
2009-03-31 09:04 UTC, Daniel Novotny
no flags Details | Diff
a patch (755 bytes, patch)
2009-03-31 09:10 UTC, Daniel Novotny
no flags Details | Diff

Description Jan Kratochvil 2008-05-21 19:20:19 UTC
Description of problem:
If you have a list with a private archive and you follow the mail header present
in the list mails
List-Archive: <http://host0.dyn.jankratochvil.net/mailman/private/vmezihori1>
the URL does not work.

Version-Release number of selected component (if applicable):
mailman-2.1.9-10.fc9.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Create a mailing list.
2. Set its archive to private (`archive_private').
3. Try to browser the List-Archive URL.
4. Click the `[ Thread ]' button.

Actual results:
On URL:
http://host0.dyn.jankratochvil.net/mailman/private/2008-May/thread.html
Message: No such list 2008-may

Expected results:
On URL:
http://host0.dyn.jankratochvil.net/mailman/private/vmezihori1/2008-May/thread.html
The right content.

Additional info:
The problem is on the public archive it is a regular directory where httpd
automatically gives a redirect with a trailing slash.
The private lists are handled by CGI /usr/lib/mailman/cgi-bin/private which does
not give such redirect.
The link from the listinfo page works fine as it has the trailing slash.
Solution:
(1) The List-Archive mail header should also have the trailing slash.
OR
(2) /usr/lib/mailman/cgi-bin/private should return the redirect.

Comment 1 Tomas Smetana 2008-05-22 07:24:41 UTC
Even 2.1.10 has the same bug.  Will look into that.

Comment 2 Daniel Novotny 2009-03-31 09:04:21 UTC
Created attachment 337280 [details]
a patch

the removal of the trailing slash seems to serve no purpose, after consultation with upstream I'll discard it

Comment 3 Daniel Novotny 2009-03-31 09:10:44 UTC
Created attachment 337282 [details]
a patch

a new patch: be better and cleaner: we don't care about the slash at all...

Comment 4 Daniel Novotny 2009-03-31 09:30:11 UTC
fixed in mailman-2.1.12-3.fc11


Note You need to log in before you can comment on or make changes to this bug.