PQ58916: REQUESTDISPATCHER.FORWARD() CALL FAILS AS IN PQ56667 | |||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description When calling requestDispatcher.forward() as described in PQ56667, the webapp context root is prepended to the URI, even if it has already been included. This will cause a 404 error. Keywords: WebSphere Application Server zOS os/390 v4.01Local fix Problem summary **************************************************************** * USERS AFFECTED: All Users of the WebSphere Application * * Server Version 4.0.1 for z/OS and OS/390 * * using Form authentication security or * * issuing a sendRedirect() call may be * * affected. * **************************************************************** * PROBLEM DESCRIPTION: WebSphere does not properly construct * * the URL from the URI which is specified * * for the Form login page, Form login * * error page, or the parameter from the * * sendRedirect() call. * **************************************************************** * RECOMMENDATION: * **************************************************************** WebSphere is handling Form Based login URI's relative to the calling JSP. If the calling JSP or servlet is not located in the base directory of the context root of the .war file, the URL is built incorrectly.Problem conclusion WebSphere for z/OS will calculate the URL based upon whether or not the URI starts with a slash, and the setting specified on the new JVM system property: com.ibm.websphere.sendredirect.compliance={true|false} in the jvm.properties file. This property defaults to false. In the web.xml, Form login URI's are required to start with a leading slash to indicate that it is relative to either the install_root or context root. If the URI starts with a slash, the value specified on the sendRedirect property determines which root is used: (1) If the URI (from sendRedirect, login, or login error) does not start with a slash, the URL is the request URL with the portion after the last slash replaced by the URI. (2) If the URI starts with a slash, and the sendRedirect property is set to true, the install_root is prepended to the URI. (3) If the URI starts with a slash, and the sendRedirect property is set to false, the Web application's context root is prepended to the URI. The following information will be added to "WebSphere Application Server V4.0.1 for z/OS and OS/390: Assembling J2EE Applications": 1. The new property, com.ibm.websphere.sendredirect.compliance, will be added to the table "Where to use JVM properties" in Appendix A, indicating it is to be used with a J2EE server. 2. The following description of the new com.ibm.websphere.sendredirect.compliance property will be added to Appendix A: com.ibm.websphere.sendredirect.compliance= Specifies whether or not a URI is appended to the WebSphere for z/OS install_root or the Web application's context root when the URI starts with a slash. If the URI starts with a slash, and the sendRedirect property is set to true, the URI is appended to the install_root; if the URI starts with a slash, and the sendRedirect property is set to false, the URI is appended to the Web application's context root, The default value is false. Example: com.ibm.websphere.sendredirect.compliance=false For the most current version of the WebSphere for z/OS publications, see the product library page at URL: http://www.ibm.com/software/webservers/appserv/zos_os390/ library.html. This code change corresponds to APAR PQ56667 for the WebSphere for Distributed Platforms product and, hence, it will be superseded by the next WebSphere for z/OS PTF that provides service updates to V4.0.1 that were previously included in a WebSphere for Distributed Platforms FixPack. This change affects the following COMPID: 5655A9800 R401 for z/OS and OS/390. The code changes are stored in CMVC under defect PQ58916. 401Y EJSJWCSC EJSJWCWC * Cross Reference between External and Internal NamesTemporary 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 #: PQ58916
IBM Group: Software Group
Modified date: May 2, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.