Closed
Bug 99471
Opened 23 years ago
Closed 23 years ago
Pages which redirect to themselves cause an infinite loop of requests
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
People
(Reporter: bugzilla, Assigned: neeti)
References
()
Details
Attachments
(1 file)
82 bytes,
application/x-perl
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010803
BuildID: 2001080312
I had accidentally created a CGI script which produced an HTTP 302 redirect
response, pointing to *itself* as the new URL. With Netscape 4.x, I got the
somewhat cryptic error message "document contained no data." With wget, it
simply stopped with the error "Redirection to itself."
Mozilla, however, simply kept fetching the page over and over and over until I
closed it (*all* Mozilla windows had to be closed). The stop button was not
helpful.
Reproducible: Always
Steps to Reproduce:
1. Find/create a page that redirects to itself. I have provided a sample (at
the sample URL above - please don't pound my server too hard!).
2. Enter that URL into the location bar, and hit enter.
3. Watch Mozilla hit the server repeatedly, blindly following the redirect.
Actual Results: I watched my web server logs go nuts recording hits to that file.
Expected Results: IMHO, the correct behaviour would be what wget does: report
that the page redirects to itself, and stop.
I listed this bug as being on Linux because all I have handy to test, but I
suspect other platforms will have the same bad behaviour.
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Scott, thanks for the excellent bug report! This is a duplicate, but keep
reporting bugs!
Duplicate of "Redirection loops"
*** This bug has been marked as a duplicate of 83471 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•