Explicit (non-80) port sometimes missing from URL

Bug #266025 reported by Unionchurch
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Invalid
Medium
Unassigned

Bug Description

I run my Mailman admin web site on a non-standard port
which I stated back at build time using the configure
tool. It works correctly but there is at least one link from
which the port number is missing from the URL. It is the
link for which the hyertext says "Overview of all
myserver.mydomain.com lists".

[http://sourceforge.net/tracker/index.php?func=detail&aid=896524&group_id=103&atid=100103]

Tags: web-cgi
Revision history for this message
Unionchurch (unionchurch) wrote :

OK, I have learned more about this. The behavior comes
about when generating the "Overvew" link as I mentioned
when I first logged the bug report. The hypertest link is made
by calling Mailman/Utils/ScriptURL(), which calls
Mailman/Utils.py/get_domain(), which looks for an OS
environment variable SERVER_PORT. The routine is probably
relying on Apache to set SERVER_PORT as an enviornment
variable in the cgi-bin execution process and it s not
happening. Wouldn't it be better to just rely on
DEFAULT_URL_HOST in Defaults.py ?

Revision history for this message
Ppsys (ppsys) wrote :

Per the CGI 1.1 spec (see http://hoohoo.ncsa.uiuc.edu/cgi/env.html), a
Mailman CGI script is entitled to expect the SERVER_PORT environment
variable to be set by the server before the script is run.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.