Closed
Bug 281644
Opened 20 years ago
Closed 18 years ago
confirm-user-match template generates absolute URL instead of relative
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 329334
People
(Reporter: slovin_jeffrey, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 We run bugzilla through a squid redirector. The following occurs in Bugzilla 2.18. When creating a new bug, post_bug.cgi calls Bugzilla::User::match_field. If the user login name does not match because of case differences, match_field() calls the confirm-user-match.html.tmpl template to prompt the user to confirm the login name. This template creates a form and sets the action script to the value of the %script% template variable, which gets run when the "Confirm" button is clicked Bugzilla::User::match_field sets the value of this variable to the SCRIPT_NAME env var set by the web server. The problem is that this value is an absolute path, and not a relative path. Most (all?) of the action scripts in the other forms throughout bugzilla use relative paths. Using an absolute path breaks redirectors. Reproducible: Always
| Reporter | ||
Updated•20 years ago
|
Version: unspecified → 2.18
Comment 1•20 years ago
|
||
I run Bugzilla on an internal server and use ProxyPass directives for external
access, so I get the same problem. To fix, I modified the match_field sub in
Bugzilla/User.pm to set script var value to $ENV{'URL'} rather than
$ENV{'SCRIPT_NAME'} (just before call to process template).
You need to log in
before you can comment on or make changes to this bug.
Description
•