Closed Bug 1227866 Opened 9 years ago Closed 9 years ago

infinite loop consuming resources when PATH_INFO set

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: glob)

Details

Attachments

(1 file)

performing a request with PATH_INFO set (eg. show_bug.cgi/show_bug.cgi?id=35) results in an infinite redirection loop within bugzilla.  because each iteration of the loop generates output, the result is a worker quickly consumes all memory resulting in overall sadness.

> Bugzilla::CGI::new("Bugzilla::CGI") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla.pm line 300
> Bugzilla::cgi("Bugzilla") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla.pm line 359
> Bugzilla::github_secret("Bugzilla") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla/CGI.pm line 383
> Bugzilla::CGI::header(Bugzilla::CGI=HASH(0x5570f8010408), "-Type", "", "-Status", "302 Found", "-Location", "http://modperl/show_bug.cgi?id=39", "-nph", undef, ...) called at (eval 161) line 17
> CGI::redirect(Bugzilla::CGI=HASH(0x5570f8010408), "http://modperl/show_bug.cgi?id=39") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla/CGI.pm line 92
> Bugzilla::CGI::new("Bugzilla::CGI") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla.pm line 300
> Bugzilla::cgi("Bugzilla") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla.pm line 359
> Bugzilla::github_secret("Bugzilla") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla/CGI.pm line 383
> Bugzilla::CGI::header(Bugzilla::CGI=HASH(0x5570f7726218), "-Type", "", "-Status", "302 Found", "-Location", "http://modperl/show_bug.cgi?id=39", "-nph", undef, ...) called at (eval 161) line 17
> CGI::redirect(Bugzilla::CGI=HASH(0x5570f7726218), "http://modperl/show_bug.cgi?id=39") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla/CGI.pm line 92
> Bugzilla::CGI::new("Bugzilla::CGI") called at /opt/bugzilla/htdocs/mod_perl/Bugzilla.pm line 300
> ...
Attached patch 1227866_1.patchSplinter Review
Attachment #8691774 - Flags: review?(dylan)
Comment on attachment 8691774 [details] [diff] [review]
1227866_1.patch

Review of attachment 8691774 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

I think the redirect if there is path_info thing is a pretty weird behavior.
Attachment #8691774 - Flags: review?(dylan) → review+
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   fe886c6..7880de8  master -> master
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: