tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Langlois <>
Subject Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28.
Date Wed, 11 Aug 2010 13:38:47 GMT
   I need confirmation of an issue I've encountered while upgrading from
Apache Tomcat 5.5.25 to 5.5.29 running in Java 1.5.0_22 on Solaris 10u8.
Unfortunately, I'm going about this backwards as I've already created a bug
report.  The tomcat site, however, recommends that confirmation should be
received as to whether a suspected bug is a bug or not on the tomcat user
mailing list.

Issue found in: Apache Tomcat 5.5.29
Issue introduced in: Apache Tomcat 5.5.28


Get "HTTP/1.1 400 Bad Request" response back when Tomcat receives an HTTP
simple request (no HTTP version specified in request line).

Expected behaviour:

According to its documentation, tomcat 5.5.x's HTTP connector is compliant
with the HTTP/1.1 RFC, and will seamlessly transition to HTTP/1.0 if an
HTTP/1.0 request is received.  For backwards compatibility (I assume), the
HTTP 1.0 RFC handles HTTP 0.9 requests for older clients, referring to these
requests as "simple requests" in the RFC.  Thus, according to the RFC,
tomcat should respond with a "simple response" should it receive a "simple

Example of expected behaviour:

wcars1u7-unit1# telnet localhost 5555
Connected to localhost.
Escape charac= ter is '^]'.
GET /index.html

<title>Zack Networks Application Server</title>
<style type="text/css">
BODY {margin: 64px;
background: #ffffff;
cursor: default;}
H1, H2, H3, H4, H5, H6
{font-family: Zack-Networks-Primary, Arial-Bold, Arial,
Helvetica, Sans-Serif;
color: #003399;}

<h2>No application is available at this URL. Please see the product
documentation for the correct URL.</h2>
Connection to localhost closed by foreign host.

Behaviour I'm seeing:

wcars1u7-unit1# telnet localhost 8080
Connected to localhost.
Escape character is '^]'.
GET /index.html
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Tue, 10 Aug 2010 18:32:36 GMT
Connection: close


Connection to localhost closed by foreign host.

With debug enabled, tomcat logs the following thrown exception:

2010-07-29 15:49:22,068 [http-8080-Processor24] DEBUG

org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header

java.lang.IllegalArgumentException: Invalid character (CR or LF) found
in method name
 at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(
 at org.apache.coyote.http11.Http11Processor.process(

 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(

 at org.apache.tomcat.util.threads.ThreadPool$

Further information can be found in the bug report:

Can someone please confirm this issue?
Is it possible to get some indication as to if, when, and in what version
this issue will be fixed in the Tomcat 5.5.x release?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message