Re: Last Call: <draft-ietf-httpbis-header-structure-18.txt> (Structured Field Values for HTTP) to Proposed Standard

Mark Nottingham <mnot@mnot.net> Mon, 18 May 2020 06:09 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 2E9093A084F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 17 May 2020 23:09:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.849
X-Spam-Level:
X-Spam-Status: No, score=-0.849 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=yX8/iRg8; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=KShOgwaJ
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 0hL38S3Sr3Qb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 17 May 2020 23:09:19 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (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 167393A0853 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 17 May 2020 23:09:18 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jaYv5-0003Xd-3q for ietf-http-wg-dist@listhub.w3.org; Mon, 18 May 2020 06:06:35 +0000
Resent-Date: Mon, 18 May 2020 06:06:35 +0000
Resent-Message-Id: <E1jaYv5-0003Xd-3q@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1jaYv4-0003Ws-5W for ietf-http-wg@listhub.w3.org; Mon, 18 May 2020 06:06:34 +0000
Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1jaYv2-0005b3-AD for ietf-http-wg@w3.org; Mon, 18 May 2020 06:06:34 +0000
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0D6504D37; Mon, 18 May 2020 02:06:17 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 18 May 2020 02:06:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm2; bh=A V2KIg+w3hwpSnRRQaU74qDI+MGfxxr1+cHoHPezLe0=; b=yX8/iRg8GxfF3w5UD 45RlUADhvEnWgm7/CcEW3+kXpzaqRyiKZc7C5IGc3TO7VHHAfumFg95VT7kyXo5U Erhx9xongJVKP/InXWhQHSXp88vxzDHJSEnG4Lfo5d4ugKFz2O0cvIA65PtUzs5K MhuaIMEx9bL+P2suO5xPVWydgGwt0GsFtOixNCbzPYm/FAZfenBJey3di3LvOWsM iyeisHjjNqkKVvE3J7dsPuwQhjBclgbIJqaSgE+nGmc1zD5cMKVdYFL4KCNLGPsE v9plc5A/fJT0rwbtZBDFLpYOnv2fExCuv3sczVHKmR0Rf7c/E0zJhQJk8sUJVnvL pEcIw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=AV2KIg+w3hwpSnRRQaU74qDI+MGfxxr1+cHoHPezL e0=; b=KShOgwaJdLckFgQWx0dQS7QbWqr3G/SDw6Z+eAIsxfBgRQnVBLOJeaiPq Vq6jb91X3DZL0Nu3wdH9gHXT5W7KuK+PGJ/8OXQS0Q+hYdhVUEgLJQdA34JrV05t kmOWrdJwbLN6qHtI9K7AzeIwi8k+5NEevjxfOV4d3foX43oioFgo+EPUDUV5PAo0 dhKAAY5JNZqrcHTZNabxWIZSX2Tm5B01icv20726m3yv4EWdcWFHAhlBr6gvlnvM /hBJ+Mqhg2dqkJZqEdxADnuYhMaiF/CETBLflg6VJFgxU2lJsO+geK1kUBiQQK5t q7fQJYI3QiHpSKdy0vXqF2wS5HV+g==
X-ME-Sender: <xms:2CXCXrfclQDLNhqRiF1D3j7ecSNNXg95xC4Q_5c7eF2xroUFQrGvMQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddtgedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtddvnecuhfhrohhmpeforghr khcupfhothhtihhnghhhrghmuceomhhnohhtsehmnhhothdrnhgvtheqnecuggftrfgrth htvghrnhepfeeggeehieeihfehhfegheekgfeihfefteegjeefheeitefhvdffueefvdff uddvnecuffhomhgrihhnpegvgigrmhhplhgvrdgtohhmpdhmnhhothdrnhgvthenucfkph epudduledrudejrdduheekrddvhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepmhhnohhtsehmnhhothdrnhgvth
X-ME-Proxy: <xmx:2CXCXhOAxVYfGJOqFz2dOAxNefgRFmFgrbNeJMEwmrd15AgjV25c7A> <xmx:2CXCXkjyDOaghL8ehwb8h51FlIW8VoNHJKeNWFWMNzDn4X7UD3b4gA> <xmx:2CXCXs9Ec6TaWEuM18B1z4NuQc4ecrKj89Zfyj--LcVtCJjlE8Y5Pg> <xmx:2SXCXtXM13BmqMs92K8GeRpppMnjqgdTyfxODQqpRHebjf4SYJGmUQ>
Received: from macbook-air.mnot.net (119-17-158-251.77119e.mel.static.aussiebb.net [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id A1F2B30663E4; Mon, 18 May 2020 02:06:14 -0400 (EDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <0150efc3-9d69-3ada-b714-5d2d6c9dbed3@gmx.de>
Date: Mon, 18 May 2020 16:06:08 +1000
Cc: last-call@ietf.org, httpbis-chairs@ietf.org, HTTP Working Group <ietf-http-wg@w3.org>, Barry Leiba <barryleiba@gmail.com>, draft-ietf-httpbis-header-structure@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <304BB4CA-54FC-498E-AB3F-12277FCEB2CB@mnot.net>
References: <158740521959.1174.9556681562748997101@ietfa.amsl.com> <bb3a29ff-1a0f-964d-c764-4d4819d338da@gmx.de> <4184EA3A-793F-4F29-8E99-FD371F35F6AC@mnot.net> <0150efc3-9d69-3ada-b714-5d2d6c9dbed3@gmx.de>
To: "Julian F. Reschke" <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Received-SPF: pass client-ip=64.147.123.24; envelope-from=mnot@mnot.net; helo=wout1-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-9.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jaYv2-0005b3-AD 5bbe431679fc6b48f61d3af05e982ce2
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Last Call: <draft-ietf-httpbis-header-structure-18.txt> (Structured Field Values for HTTP) to Proposed Standard
Archived-At: <https://www.w3.org/mid/304BB4CA-54FC-498E-AB3F-12277FCEB2CB@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37646
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 15 May 2020, at 6:20 pm, Julian Reschke <julian.reschke@gmx.de> wrote:
>> 
>>> What bugs me is that we have an invalid message to start with, but the
>>> spec apparently *requires* receivers to accept it, albeit with
>>> potentially unpredictable results.
>>> 
>>> IMHO it would be better to allow those recipients that *can* detect the
>>> brokenness to reject these fields.
>> 
>> The problem is that many recipients won't be able to. This includes not only when an intermediary combines multiple field lines into one, but also when a server or library does so (which is more common IME).
> 
> Yes.
> 
>> We already have potential inconsistency in whitespace caused by such combination. I'm reluctant to add another dimension of inconsistency (whether or not the SH^HF implementation can recognise this situation and reject early).
> 
> Understood, but I would see it this way: having *some* implementations
> able to detect broken input is better than nobody detecting it, because
> this way the problem might be fixed.
> 
> I'd really like to hear some more feedback on this. Note that this is
> related to what we can say in draft-ietf-httpbis-semantics - is a
> recipient allowed *not* to combine field lines when they are clearly in
> error, such as with:
> 
>  Location: https://example.com/foo
>  Location: bar

I think this means adding something like this near the bottom of 4.2. Parsing Structured Fields:

"""
Parsers MAY fail when processing a field value spread across multiple field lines, when one of those lines does not parse as that field. For example, a parsing handling an Example-String field that's defined as a sf-string is allowed to fail when processing this field section:

Example-String: "foo
Example-String: bar"
"""

Does that do it?

Cheers,


--
Mark Nottingham   https://www.mnot.net/