2011/10/11 Paul Wilson <paulalexwil...@gmail.com>:
> On 11 October 2011 10:43, Konstantin Kolinko <knst.koli...@gmail.com> wrote:
>> I cannot say about "various" versions (because it was a bug that was
>> fixed in 6.0.33).
>
> Was the fixed made available in Tomcat 7 too? (Can't see it in the changelog).
>

I think it was a part of
http://svn.apache.org/viewvc?view=revision&revision=944920

>> My understanding is that getServletPath and getContextPath should not
>> have path parameters, because they reflect mapping upon Servlets, and
>> this mapping ignores path parameters.
>>
>> The getPathInfo and getRequestURI methods provide information about
>> "original" request and thus have the parameters.
>
> And the fix affected both these methods, or just getRequestURI?
>

Hm...

There are RequestInfoExample servlet and snoop.jsp in the sample webapp.

Testing them apparently getPathInfo() still does not return path parameters.

http://localhost:8080/examples/jsp/snp;x=y/snoop.jsp
http://localhost:8080/examples/servlets/servlet;foo=bar/RequestInfoExample/baz;y=z/d

The second one prints:
Path Info:      /baz/d

both in trunk and in current 6.0.

>
>> The fact that getPathInfo and getRequestURI do return path parameters
>> is explicitly mentioned in Servlet specification - see chapter SRV.3.1
>> in servlet-2_5-mrel2-spec.pdf.
>
> Strange that it mentions GET explicitly. :-/
>

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to