You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/11/23 14:57:42 UTC
DO NOT REPLY [Bug 14797] New: -
Request headers are broken after invoking pageContext.include()
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14797>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14797
Request headers are broken after invoking pageContext.include()
Summary: Request headers are broken after invoking
pageContext.include()
Product: Tomcat 4
Version: 4.1.12
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Critical
Priority: Other
Component: Connector:Coyote JK 2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: takehiko.yokota@toshiba.co.jp
When Tomcat and Apache are connected by Coyote/JK2 AJP1.3 connector,
HTTP request headers are broken after invoking pageContext.include() method
in a JSP file. This problem does not occur when using legacy APJ1.3 connector.
For example, when request "http://localhost/test/index.jsp" is sent,
Web browser displays like follows:
------------------------------------------------------------------
test test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test test
test test test test test test test test test test test TEST accept: te
accept-encoding: st test test
accept-language: te
connection: st test te
cookie: st test test test test test test test test test test test test test
test test test test
host: test test t
user-agent: est test test test test test test test test test t
content-length: e
------------------------------------------------------------------
where /test/index.jsp and /test/included.jsp are like follows:
[/test/index.jsp]
------------------------------------------------------------------
<%@ page contentType="text/html" import="java.util.*" %>
test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test
<% pageContext.include("/included.jsp"); %>
<%
Enumeration enum = request.getHeaderNames();
while (enum.hasMoreElements()) {
String name = (String)enum.nextElement();
%><%= name %>:
<%= request.getHeader(name) %><br />
<% } %>
------------------------------------------------------------------
[/test/included.jsp]
------------------------------------------------------------------
<%@ page contentType="text/html" %>
TEST
------------------------------------------------------------------
However, a request "http://localhost:8080/test/index.jsp"
does not cause the problem.
Environment:
Tomcat4.1.12
Linux 2.2.18-0vl4.2
Apache1.3.23 + mod_jk-1.3-eapi.so
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>