PQ88635: the value of javax.servlet.include.query_string,this attribute be get from the request of the servlet calling include method

 Fixes are available

PQ94676; 5.1.1.1, 5.1.0.5: Incorrect value returned from getQueryString
5.1.0.5: WebSphere Application Server V5.1.0 Cumulative Fix 5
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for AIX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Windows
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for HP-UX
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Solaris
5.1.1.6: WebSphere Application Server Version 5.1.1 Cumulative Fix 6
5.1.1.7: WebSphere Application Server Version 5.1.1 Cumulative Fix 7
5.1.1.4: WebSphere Application Server Version 5.1.1 Cumulative Fix 4
5.1.1.1: WebSphere Application Server Express 5.1.1 Cumulative Fix 1
5.1.1.8: WebSphere Application Server 5.1.1 Cumulative Fix 8 for Linux
5.1.1.1: WebSphere Application Server Version 5.1.1 Cumulative Fix 1



APAR status
Closed as program error.

Error description
the value of javax.servlet.include.query_string
attribute. The attribute should be get from the request of the
servlet calling include method,
rather than the request (wrapper) passed into included servlet.

According to Servlet spec 2.3 (SRV. 8.3.1) Included Request
Parameters states that:

"... a servlet being used from within an include has access to
the path by which it was invoked.
The following request attributes are set:
.......
javax.servlet.included.query_string

The attribute are accessible form the included servlet via the
getAttribute method on the request object."
Local fix
No work around
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server users of        *
*                 RequestWrapper                               *
****************************************************************
* PROBLEM DESCRIPTION: The value of attribute                  *
*                      javax.servlet.include.query_string      *
*                      was from the request that starts a      *
*                      servlet chain. It may not be the        *
*                      original to this include.               *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
The value of attribute javax.servlet.include.query_string
should be from the request when requestDispatcher is created,
not from the request that starts the servlet chain.
Problem conclusion
When we get a servlet request dispatcher, we will save the
current request as the original request. Include will use the
saved query string from the original request to set
javax.servlet.include.query_string.
Temporary fix Comments
APAR information
APAR number PQ88635
Reported component name WAS BASE 5.0
Reported component ID 5630A3600
Reported release 00A
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2004-05-10
Closed date 2004-06-09
Last modified date 2004-06-09

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
WEBENG          

Publications Referenced

Fix information

Applicable component levels
R003 PSY    UP
R00A PSY    UP
R00H PSY    UP
R00I PSY    UP
R00P PSY    UP
R00S PSY    UP
R00W PSY    UP
R103 PSY    UP
R10A PSY    UP
R10H PSY    UP
R10I PSY    UP
R10P PSY    UP
R10S PSY    UP
R10W PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 00A
Software edition:
Reference #: PQ88635
IBM Group: Software Group
Modified date: Jun 9, 2004