Closed Bug 637977 Opened 14 years ago Closed 14 years ago

Under mod_perl, Bugzilla generates URLs with semicolons instead of ampersands

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

This bug has actually been around since the very beginning of our mod_perl support--for some reason, Bugzillas running under mod_perl generate URL query parameters separated by semicolons instead of ampersands. (This only happens when we ask CGI.pm to generate a URL for us.) There is an -oldstyle_urls setting that we are configuring in CGI.pm, but it is apparently not persisting, so we will have to figure out what to do about that.
Attached patch v1Splinter Review
Okay, this fixes this bug and other long-standing issues (such as us not retaining $SIG{TERM} under mod_perl). Basically the problem was that CGI::_reset_globals was registered as a cleanup handler automatically by CGI.pm. But it didn't properly restore the symbols on every new page load. I've simplified this by always restoring them when we call new(), under mod_perl. I have tested this and it works.
Assignee: general → mkanat
Status: NEW → ASSIGNED
Attachment #516138 - Flags: review?(LpSolit)
Attachment #516138 - Flags: review?(LpSolit) → review?(glob)
Comment on attachment 516138 [details] [diff] [review] v1 r=glob weird that we haven't seen this problem on bmo, but makes sense.
Attachment #516138 - Flags: review?(glob) → review+
Yeah, I agree that that is weird. I used to see it, for sure. Maybe there's some trickery that is hiding it from us on bmo.
Flags: approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla.pm modified Bugzilla/CGI.pm Committed revision 7751.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 655847
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: