You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/12/12 23:43:32 UTC

Re: getPathInfo() return wrong path info - still an issue

Andy,

Could you package your test case as a WAR and add it to the bug report?
There's no way to know whether the behavior you quote or not is correct
without seeing your servlet mappings, and everything else.

Craig


On Wed, 12 Dec 2001, Andy Olliver wrote:

> Date: Wed, 12 Dec 2001 22:44:48 -0000
> From: Andy Olliver <an...@slyfrog.com>
> Reply-To: Tomcat Developers List <to...@jakarta.apache.org>,
>      andy@slyfrog.com
> To: Tomcat Developers List <to...@jakarta.apache.org>
> Subject: getPathInfo() return wrong path info - still an issue
>
> Craig
>
> This is definitely a problem with build 4.01 - I will try with last nights
> build.
>
> I have log files (produced by RequestDumperFilter) showing unreliable
> results for  getPathInfo().
> (don't get confused by context = servlet, so when I use Invoker I have
> .../servlet/servlet/....)
> I tried this using Invoker and servlet class names, and then with servlet
> aliases.
>
> #######################
> 2001-12-12 09:18:22 Request Received at 2001-12-12 09:18:22.276
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=dsds
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008148444816
>             cookie=JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008148444816;
> JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept=*/*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
> 5.0)
>             method=GET
>           pathInfo=/foo/bar/
>        queryString=a=dsds
>         remoteUser=null
> requestedSessionId=6464919682997592E4D9A533D2B322B9
>         requestURI=/servlet/servlet/andy.test.RequestData/foo/bar/
>        servletPath=/servlet/andy.test.RequestData
> =============================================
> #######################
> 2001-12-12 22:14:56 Request Received at 2001-12-12 22:14:56.846
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=b
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008149958182
>             cookie=JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008149958182;
> JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept=image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, */*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
> 5.0)
>             method=GET
>           pathInfo=/andy.test.RequestData/open/dfoo
>        queryString=a=b
>         remoteUser=null
> requestedSessionId=D03605F26332C358B0F6A10081343290
>         requestURI=/servlet/servlet/andy.test.RequestData/open/dfoo
>        servletPath=/servlet
> =============================================
> ##########################
>
> also if I set up Aliases:
>
> #################
> 2001-12-12 22:10:22 Request Received at 2001-12-12 22:10:22.611
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=WMRCSession=1008149958182
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008149958182
>             cookie=JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008149958182;
> JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept=*/*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
> 5.0)
>             method=GET
>           pathInfo=/open
>        queryString=WMRCSession=1008149958182
>         remoteUser=null
> requestedSessionId=D03605F26332C358B0F6A10081343290
>         requestURI=/servlet/rd/open
>        servletPath=/rd
> =============================================
> ######################
>
> 2001-12-12 09:30:29 Request Received at 2001-12-12 09:30:29.562
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=dsds
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008148444816
>             cookie=JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008148444816;
> JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept=image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, */*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
> 5.0)
>             method=GET
>           pathInfo=null
>        queryString=a=dsds
>         remoteUser=null
> requestedSessionId=6464919682997592E4D9A533D2B322B9
>         requestURI=/servlet/rd/open/bar/
>        servletPath=/rd/open/bar/
> =============================================
> ########################
>
> let me know what other info would help reproduce this
> env:
> jdk sun 1.3.1_01
> win 2000
> tomcat build 4.01
>
> Andy
>
>
> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: 12 December 2001 20:11
> To: tomcat-dev@jakarta.apache.org
> Subject: DO NOT REPLY [Bug 5176] - getPathInfo() return wrong path info
>
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5176>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5176
>
> getPathInfo() return wrong path info
>
> craig.mcclanahan@sun.com changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|REOPENED                    |RESOLVED
>          Resolution|                            |INVALID
>
>
>
> ------- Additional Comments From craig.mcclanahan@sun.com  2001-12-12
> 12:11 -------
> No reproducible test case has been provided, despite repeated requests.
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: getPathInfo() return wrong path info - still an issue

Posted by Andy Olliver <an...@slyfrog.com>.
here are the conf files - let us know if any other stuff is helpfull - a WAR
file would be very big (and my companies precious assets).

A.

-----Original Message-----
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: 12 December 2001 22:44
To: Tomcat Developers List; andy@slyfrog.com
Subject: Re: getPathInfo() return wrong path info - still an issue


Andy,

Could you package your test case as a WAR and add it to the bug report?
There's no way to know whether the behavior you quote or not is correct
without seeing your servlet mappings, and everything else.

Craig


On Wed, 12 Dec 2001, Andy Olliver wrote:

> Date: Wed, 12 Dec 2001 22:44:48 -0000
> From: Andy Olliver <an...@slyfrog.com>
> Reply-To: Tomcat Developers List <to...@jakarta.apache.org>,
>      andy@slyfrog.com
> To: Tomcat Developers List <to...@jakarta.apache.org>
> Subject: getPathInfo() return wrong path info - still an issue
>
> Craig
>
> This is definitely a problem with build 4.01 - I will try with last nights
> build.
>
> I have log files (produced by RequestDumperFilter) showing unreliable
> results for  getPathInfo().
> (don't get confused by context = servlet, so when I use Invoker I have
> .../servlet/servlet/....)
> I tried this using Invoker and servlet class names, and then with servlet
> aliases.
>
> #######################
> 2001-12-12 09:18:22 Request Received at 2001-12-12 09:18:22.276
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=dsds
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008148444816
>             cookie=JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008148444816;
> JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept=*/*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT
> 5.0)
>             method=GET
>           pathInfo=/foo/bar/
>        queryString=a=dsds
>         remoteUser=null
> requestedSessionId=6464919682997592E4D9A533D2B322B9
>         requestURI=/servlet/servlet/andy.test.RequestData/foo/bar/
>        servletPath=/servlet/andy.test.RequestData
> =============================================
> #######################
> 2001-12-12 22:14:56 Request Received at 2001-12-12 22:14:56.846
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=b
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008149958182
>             cookie=JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008149958182;
> JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept=image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, */*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT
> 5.0)
>             method=GET
>           pathInfo=/andy.test.RequestData/open/dfoo
>        queryString=a=b
>         remoteUser=null
> requestedSessionId=D03605F26332C358B0F6A10081343290
>         requestURI=/servlet/servlet/andy.test.RequestData/open/dfoo
>        servletPath=/servlet
> =============================================
> ##########################
>
> also if I set up Aliases:
>
> #################
> 2001-12-12 22:10:22 Request Received at 2001-12-12 22:10:22.611
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=WMRCSession=1008149958182
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008149958182
>             cookie=JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008149958182;
> JSESSIONID=D03605F26332C358B0F6A10081343290
>             header=accept=*/*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT
> 5.0)
>             method=GET
>           pathInfo=/open
>        queryString=WMRCSession=1008149958182
>         remoteUser=null
> requestedSessionId=D03605F26332C358B0F6A10081343290
>         requestURI=/servlet/rd/open
>        servletPath=/rd
> =============================================
> ######################
>
> 2001-12-12 09:30:29 Request Received at 2001-12-12 09:30:29.562
>  characterEncoding=null
>      contentLength=-1
>        contentType=null
>             locale=en_GB
>            locales=en_GB
>          parameter=a=dsds
>           protocol=HTTP/1.1
>         remoteAddr=127.0.0.1
>         remoteHost=127.0.0.1
>             scheme=http
>         serverName=wma_local2
>         serverPort=80
>           isSecure=false
> ---------------------------------------------
>        contextPath=/servlet
>             cookie=WMRCSession=1008148444816
>             cookie=JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept-language=en-gb
>             header=connection=Keep-Alive
>             header=cookie=WMRCSession=1008148444816;
> JSESSIONID=6464919682997592E4D9A533D2B322B9
>             header=accept=image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel,
> application/msword, */*
>             header=host=wma_local2
>             header=accept-encoding=gzip, deflate
>             header=user-agent=Mozilla/4.0 (compatible; MSIE 5.5; Windows
NT
> 5.0)
>             method=GET
>           pathInfo=null
>        queryString=a=dsds
>         remoteUser=null
> requestedSessionId=6464919682997592E4D9A533D2B322B9
>         requestURI=/servlet/rd/open/bar/
>        servletPath=/rd/open/bar/
> =============================================
> ########################
>
> let me know what other info would help reproduce this
> env:
> jdk sun 1.3.1_01
> win 2000
> tomcat build 4.01
>
> Andy
>
>
> -----Original Message-----
> From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> Sent: 12 December 2001 20:11
> To: tomcat-dev@jakarta.apache.org
> Subject: DO NOT REPLY [Bug 5176] - getPathInfo() return wrong path info
>
>
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5176>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5176
>
> getPathInfo() return wrong path info
>
> craig.mcclanahan@sun.com changed:
>
>            What    |Removed                     |Added
> --------------------------------------------------------------------------
--
>              Status|REOPENED                    |RESOLVED
>          Resolution|                            |INVALID
>
>
>
> ------- Additional Comments From craig.mcclanahan@sun.com  2001-12-12
> 12:11 -------
> No reproducible test case has been provided, despite repeated requests.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>