Re: [Technical Errata Reported] RFC7540 (5249)

"Roy T. Fielding" <fielding@gbiv.com> Fri, 02 February 2018 17:12 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 61E9312DB6F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 2 Feb 2018 09:12:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.01
X-Spam-Level:
X-Spam-Status: No, score=-7.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gbiv.com
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 76i2BDObHmqh for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 2 Feb 2018 09:12:38 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D601512D85E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 2 Feb 2018 09:12:37 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1eheqy-00053p-0B for ietf-http-wg-dist@listhub.w3.org; Fri, 02 Feb 2018 17:10:20 +0000
Resent-Date: Fri, 02 Feb 2018 17:10:19 +0000
Resent-Message-Id: <E1eheqy-00053p-0B@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <fielding@gbiv.com>) id 1eheqo-00051s-Mq for ietf-http-wg@listhub.w3.org; Fri, 02 Feb 2018 17:10:10 +0000
Received: from sub5.mail.dreamhost.com ([208.113.200.129] helo=homiemail-a94.g.dreamhost.com) by titan.w3.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from <fielding@gbiv.com>) id 1eheqg-0005xm-I4 for ietf-http-wg@w3.org; Fri, 02 Feb 2018 17:10:09 +0000
Received: from homiemail-a94.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a94.g.dreamhost.com (Postfix) with ESMTP id 62F8C801CD38; Fri, 2 Feb 2018 09:09:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=pXdu6+rq1QbrMgWG9B/QV/GvpdA=; b=RxcTQGH2fzvaEWQrxv63Wy1ihwjD K6aWTgiBlW0oceJxkgaMJO1/18zWgNl+LoGuO6s1QTV0TfSLtQHlDULPPf8AgXLA K7qhIOSsh3u7Qi/Hw6EopUd5pbRYEy0vps59pDCCa4umCg/fBPGg3opWGOGkJKuh DRg0ur99ixp1HeY=
Received: from [192.168.1.11] (ip68-228-64-138.oc.oc.cox.net [68.228.64.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a94.g.dreamhost.com (Postfix) with ESMTPSA id 267A2801CD37; Fri, 2 Feb 2018 09:09:40 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <3e511c0e-15fa-094e-2132-e9d0b40ac7e3@ninenines.eu>
Date: Fri, 02 Feb 2018 09:09:39 -0800
Cc: Willy Tarreau <w@1wt.eu>, Martin Thomson <martin.thomson@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>, Vasiliy Faronov <vfaronov@gmail.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <95903049-B563-409D-93FF-C174CBA2D785@gbiv.com>
References: <20180201011901.E0600B80DAC@rfc-editor.org> <CABkgnnWJzG2YJ3UDsA5hfFT=1sKuEqGsBLFxWmsN1_XqFOROSg@mail.gmail.com> <20180201063200.GB1387@1wt.eu> <3e511c0e-15fa-094e-2132-e9d0b40ac7e3@ninenines.eu>
To: Loïc Hoguin <essen@ninenines.eu>
X-Mailer: Apple Mail (2.3445.5.20)
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: AWL=-0.084, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1eheqg-0005xm-I4 d61daa54733e1a7869c0df749fe7dbb7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: [Technical Errata Reported] RFC7540 (5249)
Archived-At: <https://www.w3.org/mid/95903049-B563-409D-93FF-C174CBA2D785@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/35074
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

> On Feb 2, 2018, at 1:43 AM, Loïc Hoguin <essen@ninenines.eu> wrote:
> On 02/01/2018 07:32 AM, Willy Tarreau wrote:
>> On Thu, Feb 01, 2018 at 12:43:53PM +1100, Martin Thomson wrote:
>>> The observation is correct.  However, I'm not sure that this is the
>>> solution I would choose.  I'm not sure, but I think that an empty
>>> header field would cause problems.
>> Some intermediaries risk to drop it, considering that empty is equivalent
>> to absent.
> 
> I'm curious about this as I don't recall reading this in the RFCs. [...]

FTR, an empty HTTP/1 field value is definitely not equivalent to absent.  In some cases
it is an error; in other cases it has a distinct meaning (like in Accept). An intermediary
that absent-mindedly removed empty fields is just broken, but that doesn't apply to
CGI (which is not HTTP) nor HTTP2-Settings (which should be listed in Connection to
prevent it from being forwarded).

Cheers,

....Roy