DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28323>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28323

HttpServletRequest.getPathInfo() returns null in context of a Filter class

           Summary: HttpServletRequest.getPathInfo() returns null in context
                    of a Filter class
           Product: Tomcat 4
           Version: 4.1.27
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the first lines of code in doFilter in my filter class, I have the following:

if (request instanceof HttpServletRequest)
{
  log("The URI is: " + ((HttpServletRequest)request).getRequestURI());
  log("The PathInfo is: " + ((HttpServletRequest)request).getPathInfo());
....

This filter is mapped to /*, when hit with a request to /path1/path2/file.ext
comes in, the following output is produced:

2004-04-09 21:57:23 The URI is: /path1/path2/file.ext
2004-04-09 21:57:23 The PathInfo is: null

I couldn't find anything that would lead me to belive that this is expected. 
Oracle's website has examples where getPathInfo is used in filter classes so I
would think I am not alone.  I realize this version of tomcat is a few rev's old
-- I checked the bug database before submitting and found nothing.  I am
guessing that the path info stuff is filled in after the filter chain is done.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to