tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Mismatch request-URI vs. servlet-path in TC 5.0.XX
Date Thu, 19 Aug 2004 18:22:46 GMT
The welcome files section of the 2.4 spec is hopelessly broken.  IMHO,
Tomcat's implementation is as good as can be implemented.  While it wouldn't
be that hard to append the welcome-file to the requestURI, that would mean
that it would be impossible for the servlet to ever get the requestURI that
the UA sent.  This is much worse than matching the pedantic formula (not to
mention breaking the spec for getRequestURI :).


----- Original Message -----
From: "Morten S. Mortensen" <morten.mortensen@tietoenator.com>
To: <tomcat-user@jakarta.apache.org>
Cc: <tomcat-dev@jakarta.apache.org>
Sent: Thursday, August 19, 2004 6:57 AM
Subject: Q: Mismatch request-URI vs. servlet-path in TC 5.0.XX



Hi all,

Can it really be, that the newer TC 5.0.25 and 5.0.27 breaks the formula
-

requestURI = contextPath + servletPath + pathInfo
(Servlet 2.4 specification, page 38)

      ?

My TC sets some really weird request-info like .e.g on a request upon
the URL "http://localhost:8080/Oginok_Prime/" I get the request-values -

*** requestURI: /Oginok_Prime/
*** servletPath: /index.html
*** pathInfo: null

Obviously, the request-URI does *not* contain the servlet-path.

Request upon the URL "http://localhost:8080/Oginok_Prime/" should
however result in a HTTP-redirect to the browser at the URL
"http://localhost:8080/Oginok_Prime/index.html", but this is a different
request, which the engine somehow mixes with the current request.

To the best of my knowledge, this stuff functions correctly within the
TC 4.1.XX-series.

Am I the only one seeing this?

Reguards,
Morten Sabroe Mortensen


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org



Mime
View raw message