Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 27215 invoked from network); 11 Aug 2010 13:39:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Aug 2010 13:39:21 -0000 Received: (qmail 97102 invoked by uid 500); 11 Aug 2010 13:39:18 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96756 invoked by uid 500); 11 Aug 2010 13:39:15 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 96746 invoked by uid 99); 11 Aug 2010 13:39:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 13:39:14 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heathen02@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 13:39:08 +0000 Received: by qwh5 with SMTP id 5so132587qwh.18 for ; Wed, 11 Aug 2010 06:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=qTFvP/CZOKVSqLghUADEW/S72j2Q+i8IqMMVTlSqEWw=; b=kOeU1hNDltr1vwQDviVguiFsdRArzY5MZtJA3oYYqRSyGEcrezCjKBz5Y/tESBtQzf vSrVDusz5brnQIUkAchJttHif1UDLd4a/jvw87rTWjH73ZbFthflOe0vgbBu6OGixu4U U5iFiFHTVWCNlH4k4DBOYgyrgz8XgUYdITloE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=r1x4DRQxNwQqBe2S31Flm6v/cGd0pEIQ04sCuGnOyNGpW6kBznrBH9/5yktmcoUFVp W93+Lw/Zeg7hcsSqE17h71zyzmQdqPS9wzpqWyaroxH/QlG95WC9HLdRSOziTETBJYYM q1uwWciN4rmGIMgsHNK1qBX6yvVO13xG408e8= MIME-Version: 1.0 Received: by 10.229.251.132 with SMTP id ms4mr5296858qcb.205.1281533927629; Wed, 11 Aug 2010 06:38:47 -0700 (PDT) Received: by 10.229.59.146 with HTTP; Wed, 11 Aug 2010 06:38:47 -0700 (PDT) Date: Wed, 11 Aug 2010 09:38:47 -0400 Message-ID: Subject: Need confirmation of issue: HTTP simple requests broken as of Apache Tomcat 5.5.28. From: Nick Langlois To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=001485e7e4de86226d048d8c5e73 --001485e7e4de86226d048d8c5e73 Content-Type: text/plain; charset=ISO-8859-1 Hi, 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 Issue: 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 request". Example of expected behaviour: wcars1u7-unit1# telnet localhost 5555 Trying 127.0.0.1... Connected to localhost. Escape charac= ter is '^]'. GET /index.html Zack Networks Application Server

No application is available at this URL. Please see the product documentation for the correct URL.

Connection to localhost closed by foreign host. wcars1u7-unit1# Behaviour I'm seeing: wcars1u7-unit1# telnet localhost 8080 Trying 127.0.0.1... 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 0 Connection to localhost closed by foreign host. wcars1u7-unit1# 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(InternalInputBuffer.java:474) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Further information can be found in the bug report: https://issues.apache.org/bugzilla/show_bug.cgi?id=3D49718 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? Regards, Nick. --001485e7e4de86226d048d8c5e73--