You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/05/23 13:26:12 UTC

DO NOT REPLY [Bug 35019] New: - javascript Onload starts only sometimes using Firefox/Mozilla+reverse_proxy+HTTPS+HTTP/1.1+Keep_Alive

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35019>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35019

           Summary: javascript Onload starts only sometimes using
                    Firefox/Mozilla+reverse_proxy+HTTPS+HTTP/1.1+Keep_Alive
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: All
               URL: https://webcert.bpvnsgs.it/bpn/newcert/onload.html
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: qnxuserit@yahoo.it


I'm trying to certificate my company's site as compatible with firefox but, in
some case (apparently random), I can see only a blank page. I have noticed when
this happen the page's source contains alway an onload() that should submit a
form and redirect the user to an other page. I tested the onload() with a simple
page which display a pop-up when the onload() function starts. I spent much time
trying to understand this strange problem, now I can tell you how to reproduce
this bug.

This is my test page:

<html>
<head>
<title>Test OnLoad</title>
<script language="JavaScript">
function imloaded() {
 alert('Onload() worked!');
}
</script>
</head>
<body onload="imloaded()">
<p>If you didn't get a popup message, then onload failed.</p>
</body>
</html>

If you put this page on an 

1) HTTP webserver (apache/IIS) behind an 
2) HTTPS reverse-proxy (apache-2) from https to http with 
3) HTTP/1.1 enabled and
4) keep-alive enabled

(web-server and reverse proxy MUST be on different machines)

and you test this page with Firefox 1.0.4 or Mozilla 1.7.8 with a DIRECT
connection to internet (if you use a proxy like squid this page works fine) you
 can see the pop-up appearing only sometimes.
If you press SHIFT-reload many times you can see the bug (sometime the pop-up
appears and sometime not!)
If you bypass the reverse proxy using the address of the web-server the page
works ALWAYS fine.

You can try this URLs:

- behind a reverse proxy: https://webcert.bpvnsgs.it/bpn/newcert/onload.html
(Apache 2.0.52 like rev-proxy and 1.3.29 like webserver)
- without the rev-proxy: https://trade.bpv.it/mozilla_firefox/onload.html
(apache 2.0.54)

See this screenshots:

https://trade.bpv.it/mozilla_firefox/firefox_onload.png
https://trade.bpv.it/mozilla_firefox/mozilla_onload4.png
(behind the rev-proxy the onload() does not starts)

https://trade.bpv.it/mozilla_firefox/firefox_onload1.png
https://trade.bpv.it/mozilla_firefox/mozilla_onload2.png
(after some refresh the pop-up appears)

https://trade.bpv.it/mozilla_firefox/firefox_onload3.png
https://trade.bpv.it/mozilla_firefox/mozilla_onload.png
https://trade.bpv.it/mozilla_firefox/mozilla_onload3.png
(behind the rev-proxy the onload() does not starts and the output is wrong)

https://trade.bpv.it/mozilla_firefox/firefox_onload2.png
(without rev-proxy onload() starts and the pop-up appears)

If you don't use only 1 features from this list:

-Mozilla/Firefox
-reverse-proxy
-HTTPS
-HTTP/1.1
-Keep-Alive

or if you use a proxy to browse internet the problem disappears....

I tried many versions of apache2 and openssl on Linux and HP-UX; I also tried
Mozilla and Firefox on Linux, Win2k and MacOS X. The results are the same!

Mozilla/Firefox have two bugs apparently related to this: #199281 and #269754.

I think mod_proxy has some problem when used with openssl, have you got any idea?

Thanks in advance.

Bye
Fabio

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org