tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nacho <na...@siapi.es>
Subject RE: Why tomcat 3.x makes redirects (302) absolute ?
Date Sun, 05 Nov 2000 05:10:29 GMT
Ohh unpleasure findings ( and i do need to read the damn RFC too :-)

Tomcat 3.2 seems to have another bug!!!

i've obtained this ( by means of telnet ) from different http servers,
after done a GET / in all of them, i obtained ....

This is from IIS 5.0

first finding: How IIS makes this work with respect the RFC ???  if not
seems to put an absolute path at all...
 
8<----------------------------------------------------------------------
--
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Date: Sun, 05 Nov 2000 04:48:33 GMT
Location: /inicio.asp
Connection: Keep-Alive
Content-Length: 161
Content-Type: text/html
Set-Cookie: ASPSESSIONIDGGQGGUVY=LGBPJBJDLHDMPPJJNLDMKLHA; path=/
Cache-control: private

<head><title>Se ha movido el objeto</title></head>
                                                  <body><h1>Se ha movido
el obje
to</h1>Este objeto se puede encontrar en <a
HREF="/inicio.asp">aquƝ</a>.</body> 
8<----------------------------------------------------------------------
----

This from remote ( myself from outside ) Tomcat 3.2 

Second Finding:  note the line jump after Location: header, it seems to
have a bug.

8<----------------------------------------------------------------------
----
HTTP/1.0 302 Encontrado
Content-Type: text/html
Location: http://hippo:8080/
/index.html
Content-Length: 186
Servlet-Engine: Tomcat Web Server/3.2 beta 4 (JSP 1.1; Servlet 2.2; Java
1.3.0;
Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)

<head><title>Documento trasladado</title></head>
<body><h1>Documento trasladado</h1>
Este Documento ha sido trasladado <a href="http://hippo:8080/
/index.html">here</a>.<p>
</body>
8<----------------------------------------------------------------------
----

This is from a remote Tomcat 3.3 

Third finding : another bug that need fixing ..

8<----------------------------------------------------------------------
----
HTTP/1.0 302 Encontrado
Content-Type: text/html
Location: http://localhost:8080/index.html
Content-Length: 187

<head><title>Documento trasladado</title></head>
<body><h1>Documento trasladado</h1>
Este Documento ha sido trasladado <a
href="http://localhost:8080/index.html">her
e</a>.<p>
</body>
8<----------------------------------------------------------------------
----
 
What do you think?

Saludos ,
Ignacio J. Ortega



Mime
View raw message