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

2001-12-12 Thread Craig R. McClanahan

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 -
 From: Andy Olliver [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED]
 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

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

2001-12-12 Thread Andy Olliver

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; [EMAIL PROTECTED]
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 -
 From: Andy Olliver [EMAIL PROTECTED]
 Reply-To: Tomcat Developers List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED]
 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