Closed Bug 24884 Opened 25 years ago Closed 25 years ago

Mozilla caught in some loop when HTTP server redirects to itself

Categories

(Core :: Networking, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: stsao, Assigned: ruslan)

References

()

Details

(Whiteboard: 2d)

If you go into the URL

http://bugzilla.mozilla.org/enter_bug.cgi?product=Browser

You will see that mozilla keeps showing
"connect..."
"getting data form java.sun.com"...

in the status line.

Looks like it is caught in some kind of URL redirection loop
Using 2000012108 win95, I don't see this happening at all. Further, there
is no redirect involved in going straight to this URL, and all the required
resources are located at bugzilla.mozilla.org. 

Marking WORKSFORME, but please re-open with a description of how to reproduce
this behaviour. Also include information on what build you are using. [By the
way, that message looks similar to 'loading a java applet', but there are no
applets in use on Bugzilla. -- perhaps this behaviour is occuring after 
visiting a site with an applet, and the connection is not being correctly 
shutdown when you leave the containing page.]
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Somehow I entered the wrong URL...

To reproduce it, goto

http://java.sun.com/products/jdk/javadoc/package.html-example

then 

click on the first link that says "package.html"

I am using the nightly built for NT 4.0 from Jan 23.

Thanks
ST
Status: RESOLVED → REOPENED
Ah, that makes sense (I was wondering where the java.sun.com) was coming from.

I am dead on mozilla right now, but if I go to that URL with Nav4.6 it is 
broken, and a direct telnet connection produces this: 

host1% telnet java.sun.com 80
Trying 204.160.241.93...
Connected to java.sun.com.
Escape character is '^]'.
GET /products/jdk/javadoc/package.html-example
GET /products/jdk/javadoc/package.html-example
HTTP/1.0 302 Redirect
Content-type: text/html
Server: Apache/1.3.6 (Unix)
pragma: no-cache
Location: 
http://java.sun.com/products/jdk/javadoc/trial/missing-class-message.html

Redirected /products/jdk/javadoc/package.html-example to
/products/jdk/javadoc/trial/missing-class-message.html
because it matched the pattern "/cgi-bin/cert_programmer.cgi"
which had a rewrite rule 
"http://industry.java.sun.com:443/logos/programmer/login"
Connection closed by foreign host.

I'll look at this again. Can you also check if this is working for you? Thanks.
Clearing resolution on reopen.
Resolution: WORKSFORME → ---
Well, here's the redirect loop ...

host1% telnet java.sun.com 80 
Trying 204.160.241.93...
Connected to java.sun.com.
Escape character is '^]'.
GET /products/jdk/javadoc/trial/missing-class-message.html
GET /products/jdk/javadoc/trial/missing-class-message.html
HTTP/1.0 302 Redirect
Content-type: text/html
Server: Apache/1.3.6 (Unix)
pragma: no-cache
Location: 
http://java.sun.com/products/jdk/javadoc/trial/missing-class-message.html

   ... etc. ...

So, it's pointing at itself. I suppose that networking should detect and break 
such a loop. CC: tever -- is this a known problem? (I would test myself, and 
reassign, but my machine (win95b) is busted for post-nsIFile builds). 
QA Contact: nobody → tever
Moving all open "nobody@mozilla.org" assignee bugs to "leger@netscape.com" to 
review.
Assignee: nobody → leger
Status: REOPENED → NEW
Updating component and owner.  Mozilla 2000020414 still gets stuck in this 
loop.

If you telnet directly to the host and enter the command 
GET /products/jdk/javadoc/trial/missing-class-message.html
it spits out an error message and disconnects.

Checked 4.x, and that also displays that error message.

(Error message text is:
Redirected /products/jdk/javadoc/trial/missing-class-message.html to
/products/jdk/javadoc/trial/missing-class-message.html because it matched the 
pattern "/cgi-bin/cert_programmer.cgi" which had a rewrite rule 
"http://industry.java.sun.com:443/logos/programmer/login" 
)
Assignee: leger → gagan
Component: Browser-General → Networking
Summary: Mozilla caught in some loop → Mozilla caught in some loop when HTTP server redirects to itself
Keywords: beta1
Target Milestone: M14
Putting on PDT- radar for beta1.
Whiteboard: [PDT-]
Keywords: beta2
Moving to M15
Target Milestone: M14 → M15
Moving what's not done for M15 to M16.
Target Milestone: M15 → M16
*** Bug 34913 has been marked as a duplicate of this bug. ***
Keywords: beta1
Whiteboard: [PDT-]
Whiteboard: 1d
-> ruslan
Assignee: gagan → ruslan
Whiteboard: 1d → 2d
Fixed. Will display res/errors/redirect.html now instead of loopin
Status: NEW → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Keywords: nsbeta2
verified:
winNT 2000070508
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.