On 06/14/2011 03:41 PM, sebb wrote:
> Looks like the Change button just selects a random entry from the
> list, rather than applying the selected entry.

Yes, that's the apparent action.  In reality, the default action is "select
a random mirror", so I suspect that this isn't so much the direct result of
the Change button being used as it is just a side-effect of the Preferred
server selection not "taking".

See, the Change button is just a submit button.  The
"?Preferred=SELECTED_ITEM" bit added to the form submission URL is the
natural behavior for the select box named "Preferred" and whose values come
directly from the options therein.  The mirrors.cgi is supposed to notice
that bit in the URL query string, validate the preferred URL against the
configured set of mirrors, and then -- if all is well in that validation
step -- substitute that preferred URL unto the EZT template (download.html
in our tree).  That's clearly not happening.

I wonder if this script was originally written for CGI and then something
got fouled up during some retrofitting for WSGI?  Maybe some misinteraction
with the script environment?

-- 
C. Michael Pilato <cmpil...@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to