Re: Benjamin Kaduk's Discuss on draft-ietf-httpbis-header-structure-18: (with DISCUSS and COMMENT)

Mark Nottingham <mnot@mnot.net> Thu, 21 May 2020 02:52 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 141AA3A09D6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 20 May 2020 19:52:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Level:
X-Spam-Status: No, score=-2.749 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.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=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=qyFqhlY2; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=yN0Gj8vM
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 G2gpRGRjQRSw for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 20 May 2020 19:52:55 -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 219DD3A09E4 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 20 May 2020 19:52:53 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jbbJz-0008D3-3m for ietf-http-wg-dist@listhub.w3.org; Thu, 21 May 2020 02:52:35 +0000
Resent-Date: Thu, 21 May 2020 02:52:35 +0000
Resent-Message-Id: <E1jbbJz-0008D3-3m@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 1jbbJy-0008CH-2n for ietf-http-wg@listhub.w3.org; Thu, 21 May 2020 02:52:34 +0000
Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1jbbJw-0006n8-B8 for ietf-http-wg@w3.org; Thu, 21 May 2020 02:52:33 +0000
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A44D45C0042; Wed, 20 May 2020 22:52:21 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 20 May 2020 22:52:21 -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=B bCcTzC12A9rbBIXGDI0G5YC6pAy0N91rLwTAtkK1w4=; b=qyFqhlY2phfxx1tUz SOJvcMLdLg3fZjcJW+Rt3Jvq2la0d5tdyXGIoRtShV625w4/VlxLODkMPml4h5W3 rz5vCXlmhuEUTeScsCr/EYqOPvNX2zI4lTN+CbBl1/nvioml07ErTOeqWhI3mvyE 86iTjs/umtPLRJt0PRyfvp+N5htW7k1yqut+WmwLx7UaVMvNhELlu964BVbNKSC3 v+/+aIa8vxRGlNTqqXs3aXrZm8bqW5WH3VqeARTh8Cc3vjmjBxUPObGqgS27Tegs RnGo7Njhc9SXBDX4QncbamW/xIGnwSYYWvSkZZnXgzmoyW/4YRJIGaJT+v9dAZDq OvZ/Q==
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=BbCcTzC12A9rbBIXGDI0G5YC6pAy0N91rLwTAtkK1 w4=; b=yN0Gj8vM6XkR/92UFV9704a8cnwNzEwCC3cxfSJURJa/orz4REk2ksA2b 0sgsVWeapv8G/98VLdsf2MajTTodhdSZDFAzTJf1jUO3baSthyui1JDONPOQN/zU XbA41eM6bLTNtisjwDZl5Z8WTTBE1J9n2FedTbKh5/RwRcNs6KhljAcqmJ2XmWBG J+UwVfk0sgvLUdfsfNxaiqGKUB0Ezo6yC0E/16HvmbgOVOjsBtKvWo6mCI8LImv2 ov4YwsqCdw7c3q+V53sQJ7wQFwHPD9cKUGX1zqzFOjsic2fqO3NmYs+YLCy6V2Lz 2OBUtrff69DZ6Q97j6lv/qui3Uvrg==
X-ME-Sender: <xms:5ezFXrPmQWADSpYOXxdg-ZHSgI6WrVhP5V2qK3md0RukS9cg4Q4i7A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddutddgiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepofgrrhhk ucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhnohhtrdhnvghtqeenucggtffrrghtth gvrhhnpeefheekffelheefjedtvdduleduvddtkedtkeelueeukeehteeufefhvddvkeei teenucffohhmrghinhepfiefrdhorhhgpdhmnhhothdrnhgvthenucfkphepudduledrud ejrdduheekrddvhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepmhhnohhtsehmnhhothdrnhgvth
X-ME-Proxy: <xmx:5ezFXl8oTmBfWn0qjlm0ZtmNdFfyzxkZpN0HIpDm6bEMF3sJjZar0A> <xmx:5ezFXqTigMq3vkGn93dcqmYSOYxW6OpKAxjbf417pkhdp2HHuGUU9w> <xmx:5ezFXvtDk3C4ZCXgi1F4Zgf5hhpHg2PjaLvuMQz3uavU-qKjCl_2cQ> <xmx:5ezFXkFk6_OBay6JrRvRvQsbUPtzpDT_aBi2VeWW9HIwsm1qgfKOXw>
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 F1B5B328005D; Wed, 20 May 2020 22:52:18 -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: <20200520153858.GZ58497@kduck.mit.edu>
Date: Thu, 21 May 2020 12:52:16 +1000
Cc: The IESG <iesg@ietf.org>, draft-ietf-httpbis-header-structure@ietf.org, httpbis-chairs@ietf.org, HTTP Working Group <ietf-http-wg@w3.org>, Tommy Pauly <tpauly@apple.com>
Content-Transfer-Encoding: quoted-printable
Message-Id: <AAB846E8-BD1D-48CE-966D-EA6928CD66AE@mnot.net>
References: <158985680600.32294.14997877272521602557@ietfa.amsl.com> <CFC9B0CA-6125-4705-A13E-F2260F3EC3A5@mnot.net> <20200519170036.GN58497@kduck.mit.edu> <FB915609-4CD1-416A-98AD-3950BF3BE09C@mnot.net> <20200520153858.GZ58497@kduck.mit.edu>
To: Benjamin Kaduk <kaduk@mit.edu>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Received-SPF: pass client-ip=66.111.4.25; envelope-from=mnot@mnot.net; helo=out1-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_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 1jbbJw-0006n8-B8 7950ee85f15ea3364575227a59457ac3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Benjamin Kaduk's Discuss on draft-ietf-httpbis-header-structure-18: (with DISCUSS and COMMENT)
Archived-At: <https://www.w3.org/mid/AAB846E8-BD1D-48CE-966D-EA6928CD66AE@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37691
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 21 May 2020, at 1:38 am, Benjamin Kaduk <kaduk@mit.edu> wrote:
>> 
>>>> I think the solution here is to change the last paragraph of Notational Conventions to:
>>>> 
>>>> """
>>>> For serialization to HTTP fields, the ABNF illustrates the expected wire representation with as much fidelity as possible, and the algorithms define the recommended way to produce them. Implementations MAY vary from the specified behavior so long as the output is still correctly handled by the parsing algorithm.
>>>> """
>>>> 
>>>> Does that work for you, Ben?
>>> 
>>> This makes the parsing algorithms normative for both parsing and
>>> serialization, which alleviates the concerns about skew.
>>> 
>>> I do agree with Julian that making the (minor!) change to the ABNF to
>>> remove that axis of skew seems worthwhile, though I do not think I can make
>>> that a Discuss point (given that I, like him, would prefer to keep the ABNF
>>> as-is over removing it entirely as you propose).
>> 
>> See latest commit.
> 
> I see the update to make the parsing algorithm fully normative; is there
> also something on the empty-list ABNF front that I'm failing to find?

No. Making that change would be seen as encouraging sending of empty fields. 


>>>>> What's the motivation for "MUST omit values of boolean true" (in
>>>>> parameters and dictionaries)?  It seems to make the output rules more
>>>>> complicated without a significant gain in encoding size.
>>>> 
>>>> It allows some existing HTTP headers to be treated as structured for the purposes of serialisation.
>>> 
>>> The downthread discussion also made the claim that this is due to a desire
>>> to have exactly one way to serialize.  But what's the good in having
>>> exactly one way to serialize if you don't enforce that at the receiver?
>>> (Compatibility with already-defined header fields, no doubt, but it does
>>> kind of undercut some of the stated goals of this document.)
>> 
>> Sorry, I lost state. Where did you get that impression?
> 
> Julian said it at
> https://lists.w3.org/Archives/Public/ietf-http-wg/2020AprJun/0172.html and
> I didn't see anyone jumping up to correct it.

That wasn't a motivation that we ever discussed, as I recall. I don't know why Julian asserts it here.


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