PQ78846: INCORRECT RESPONSE FROM THE GETSERVLETPATH METHOD IN THE CLASS HTTPSERVLETREQUEST . CUSTOMER GETS A /* APPENDED TO THE END.

 A fix may be available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
Customers application uses the
HttpServletRequest.getServletPath() to retrieve the Servlet Path
. Under certain conditions the response is the Servlet Path with
a "/*" appened to the end. Example:
The correct path is... /servlet/getPathInfoServlet
while what is returned is... /servlet/getPathInfoServlet/*
Once this condition is set, all HTTP requests for this servlet
that contains PathInfo( information between the ServletPath and
any Query String or ?) will have the /* appended to the
ServletPath.
VERIFICATION STEPS:
   1) code a servlet that returns response from
      HttpServletRequest.getServletPath() method
   2) drive that servlet with PathInfo:
      
http://hostname/servlet/getPathInfoServlet/path_info
      This should return "/servlet/getPathInfoServlet"
   3) drive the same servlet, ending with "/"
      
http://hostname/servlet/getPathInfoServlet/
      This should return "/servlet/getPathInfoServlet"
   4) drive the servlet again, this time with any pathinfo
      
http://hostname/servlet/getPathInfoServlet/any_pathInfo
      and the response is /servlet/getPathInfoServlet/*
      Now all subsequent requests with pathInfo will result in
      the /* being appeneded to the the TRUE ServletPath.
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 version 4.0.1 for z/OS and OS/390.           *
****************************************************************
* PROBLEM DESCRIPTION: HttpRequest's getServletPath() method   *
*                      may append "/*" to the end of the       *
*                      the servlet path.  This may result in   *
*                      an incorrect result being returned from *
*                      the HttpServletRequestgetRequestURI()   *
*                      API call.                               *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
HttpRequest's getServletPath() method may append "/*" to the end
of the servlet path.  This may result in an incorrect result
being returned from the HttpServletRequest getRequestURI() API
call.
Problem conclusion
Changes are made to WebSphere Application Server version 4.0.1
for z/OS and OS/390 such that "/*" is never appended to the
servlet path returned from the HttpServletRequest
getRequestURI() API call.

APAR PQ78846 is associated with SERVICE LEVEL W401605 of
WebSphere Application Server version 4.0.1 for z/OS and OS/390.
Temporary fix Comments
APAR information
APAR number PQ78846
Reported component name WEBSPHERE OS/39
Reported component ID 5655A9800
Reported release 401
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-09-24
Closed date 2003-11-06
Last modified date 2003-12-03

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
EJSJWBJR          

Fix information
Fixed component name WEBSPHERE OS/39
Fixed component ID 5655A9800

Applicable component levels
R401 PSY UQ81926    UP03/11/12 P F311

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 401
Software edition:
Reference #: PQ78846
IBM Group: Software Group
Modified date: Dec 3, 2003