Re: [Technical Errata Reported] RFC7540 (4663)

Willy Tarreau <w@1wt.eu> Thu, 14 April 2016 21:27 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D610F12E3FA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Apr 2016 14:27:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.917
X-Spam-Level:
X-Spam-Status: No, score=-7.917 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.996, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W_tSUcYWTXJH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Apr 2016 14:27:26 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DCD7C12E40A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 14 Apr 2016 14:27:25 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aqoj8-0000v2-Tq for ietf-http-wg-dist@listhub.w3.org; Thu, 14 Apr 2016 21:23:02 +0000
Resent-Date: Thu, 14 Apr 2016 21:23:02 +0000
Resent-Message-Id: <E1aqoj8-0000v2-Tq@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <w@1wt.eu>) id 1aqoj4-0000uG-T5 for ietf-http-wg@listhub.w3.org; Thu, 14 Apr 2016 21:22:58 +0000
Received: from wtarreau.pck.nerim.net ([62.212.114.60] helo=1wt.eu) by lisa.w3.org with esmtp (Exim 4.80) (envelope-from <w@1wt.eu>) id 1aqoj1-0000Gv-BL for ietf-http-wg@w3.org; Thu, 14 Apr 2016 21:22:58 +0000
Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id u3ELMLQD006367; Thu, 14 Apr 2016 23:22:21 +0200
Date: Thu, 14 Apr 2016 23:22:21 +0200
From: Willy Tarreau <w@1wt.eu>
To: d.stussy@yahoo.com
Cc: Barry Leiba <barryleiba@computer.org>, RFC Errata System <rfc-editor@rfc-editor.org>, Mark Nottingham <mnot@mnot.net>, Mike Belshe <mike@belshe.com>, Roberto Peon <fenix@google.com>, Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20160414212221.GB6355@1wt.eu>
References: <162094316.1891646.1460484574532.JavaMail.yahoo.ref@mail.yahoo.com> <162094316.1891646.1460484574532.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <162094316.1891646.1460484574532.JavaMail.yahoo@mail.yahoo.com>
User-Agent: Mutt/1.5.24 (2015-08-30)
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-7.0
X-W3C-Hub-Spam-Report: AWL=0.924, BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aqoj1-0000Gv-BL 4b8d6367922ec4ba47b9d93b3872fb60
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7540 (4663)
Archived-At: <http://www.w3.org/mid/20160414212221.GB6355@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31464
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Tue, Apr 12, 2016 at 06:10:08PM +0000, d.stussy@yahoo.com wrote:
> It breaks the CGI interface, which per RFC 3875 is expecting the
> SERVER_PROTOCOL variable to contain "HTTP/2.0", not "HTTP/2".  It may also
> break any server log analysis tools which depend on the ANBF syntax as the
> variable may also appear in the logs.
> 
> RFC 3875, Section 4.1.16 ABNF:
> 
>    HTTP-Version      = "HTTP" "/" 1*digit "." 1*digit
> 
> The "minor" number is not optional.  If this has been changed, RFC 7540 needs
> to say so.  It doesn't.
> 
> Personally, I don't care if this is handled via an errata or another RFC
> which clarifies the conflict.

But Barry and Mark explained to you that there is no such version conveyed
by the protocol and that the version you're seeing in your variable is
written this way by the server. In other words, while in HTTP/1 the server
could have copied the field from the request, in HTTP/2 it has to invent
that field by itself since it's not present.

Thus the server should simply respect the specification of the protocol it
is speaking. If CGI has a spec, the server should simply follow this spec.
But it's totally unrelated to the HTTP spec. If your server wants to pass
IMAP requests over a CGI interface, it may very well decide to write
IMAP/1 and you would complain to the server's implementation, not to the
IMAP protocol spec authors.

This whole request doesn't make any sense.

Willy