PQ78846: INCORRECT RESPONSE FROM THE GETSERVLETPATH METHOD IN THE CLASS HTTPSERVLETREQUEST . CUSTOMER GETS A /* APPENDED TO THE END. | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.