tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Olliver" <a...@slyfrog.com>
Subject getPathInfo() return wrong path info - still an issue
Date Wed, 12 Dec 2001 22:44:48 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


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


Mime
View raw message