I have run into the following issue:

On IBM WebSphere 6.0,

HttpServletRequest.getPathInfo() returns:

;jsessionid=1234567890

on an URL of the form:

http://www.myserver.com/myContext/myAction.do;jsessionid=1234567890

whereas any other app server I have used returns null.

IBM documents this issue here:

http://www-1.ibm.com/support/docview.wss? rs=180&context=SSEQTP&q1=1205259&uid=swg21205259&loc=en_US&cs=utf-8&lang =en

as does this dev mailing list.

However, I am wondering if WebSphere 6.0 is correct in it's behavior. It seems like it does not follow the 2.4 Servlet Specification.

Section SRV 4.4:

• PathInfo: The part of the request path that is not part of the Context Path or the Servlet Path. It is either null if there is no extra path, or is a string with a
leading ‘/’.


It seems to me that WS 6.0 should behave like other app servers and return null in this case otherwise it is violating the leading slash ('/') rule.

Thoughts?

Thanks!

Reply via email to