PQ94676: INCLUDED REQUEST PARAMETERS DO NOT MEET THE JAVA SERVLET SPEC [JAVAX.SERVLET.INCLUDE.QUERY_STRING <> GETQUERYSTRING()] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description EXTERNAL SYMPTOMS: Included Request Parameters accessed by getAttribute do not match the values of the request URI, context path, servlet path, path info, and query string of the included servlet. (ie. javax.servlet.include.query_string and getQueryString() do not match) Java Servlet Specification, Version 2.4. SRV.8.3.1 Included Request Parameters Except for servlets obtained by using the getNamedDispatcher method, a servlet that has been invoked by another servlet using the include method of RequestDispatcher has access to the path by which it was invoked. The following request attributes must be set: javax.servlet.include.request_uri javax.servlet.include.context_path javax.servlet.include.servlet_path javax.servlet.include.path_info javax.servlet.include.query_string These attributes are accessible from the included servlet via the getAttribute method on the request object and their values must be equal to the request URI, context path, servlet path, path info, and query string of the included servlet, respectively. If the request is subsequently included, these attributes are replaced for that include. If the included servlet was obtained by using the getNamedDispatcher method, these attributes must not be set.Local fix Problem summary **************************************************************** * USERS AFFECTED: WebSphere Application Server applications * * that use include * **************************************************************** * PROBLEM DESCRIPTION: In included resources, getQueryString * * had been changed. According to Servlet * * Spec 2.4, it should remain the same as * * the original queryString gotten from * * the client. * **************************************************************** * RECOMMENDATION: * **************************************************************** Servlet Spec 2.3 is not clear about the rules of path methods on requests in an included resource. Spec 2.4 clarified this issue, and we should implement path methods as spec 2.4 states.Problem conclusion Implemented path methods for including based on Servlet spec 2.4, section SRV8.3.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
Publications Referenced
|
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 10W
Software edition:
Reference #: PQ94676
IBM Group: Software Group
Modified date: Oct 15, 2004
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.