
hello everyone from France ! ;-)
done the 'direct upgrade' from 2.1.9 to 2.1.11 some time ago and just noticed something broken concerning the public archives (pipermail) :-(
IMHO, there are some junked data, on ALL the HTML listinfo pages of the "public lists" (lists with public archives), that break the URL link to them
i think there's a pb with a bad {} substitution, perhaps done in python scripts or in my mailman configuration file
to be more precise, here is a piece of broken HTML code (https://mailman.onera/mailman/listinfo/test) :
... <p> Pour voir tous les messages passés de la liste, visitez les <a href="https://{'listname': 'test', 'hostname':'mailman.onera:443'}:443/pipermail/test/"> Archives de test</a>. </p> ...
and how it would be nice to have it :
... <p> Pour voir tous les messages passés de la liste, visitez les <a href="https://mailman.onera:443/pipermail/test/"> Archives de test</a>. </p> ...
all ideas and suggestions will be welcomed sincerely yours

geraud.guibert@free.fr wrote:
It appears that you have overridden PUBLIC_ARCHIVE_URL in mm_cfg.py and in so doing have changed the default
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
to something like
PUBLIC_ARCHIVE_URL = 'http://%s:443/pipermail/%(listname)s'
Replacing %(hostname)s with %s causes it to be interpolated with the entire dictionary {'listname': 'test', 'hostname':'mailman.onera:443'} instead of just the 'hostname' value 'mailman.onera:443'.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
Also, It appears you have the port in both the pattern and the url host. The preferred way to specify ports is in the patterns PUBLIC_ARCHIVE_URL and DEFAULT_URL_PATTERN, and not in the url host.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

geraud.guibert@free.fr wrote:
It appears that you have overridden PUBLIC_ARCHIVE_URL in mm_cfg.py and in so doing have changed the default
PUBLIC_ARCHIVE_URL = 'http://%(hostname)s/pipermail/%(listname)s'
to something like
PUBLIC_ARCHIVE_URL = 'http://%s:443/pipermail/%(listname)s'
Replacing %(hostname)s with %s causes it to be interpolated with the entire dictionary {'listname': 'test', 'hostname':'mailman.onera:443'} instead of just the 'hostname' value 'mailman.onera:443'.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark Sapiro wrote:
Also, It appears you have the port in both the pattern and the url host. The preferred way to specify ports is in the patterns PUBLIC_ARCHIVE_URL and DEFAULT_URL_PATTERN, and not in the url host.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
geraud.guibert@free.fr
-
Mark Sapiro