Re: Revising Structured Fields: scope

Mark Nottingham <mnot@mnot.net> Thu, 13 October 2022 05:45 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 93609C14CF09 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Oct 2022 22:45:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.759
X-Spam-Level:
X-Spam-Status: No, score=-2.759 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_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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=JOvEi4R1; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=MKvpCUBL
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35ttK3k5e_Bq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 12 Oct 2022 22:45:10 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D2C7C1522C7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 12 Oct 2022 22:45:09 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1oir15-003Q81-Vc for ietf-http-wg-dist@listhub.w3.org; Thu, 13 Oct 2022 05:44:24 +0000
Resent-Date: Thu, 13 Oct 2022 05:44:23 +0000
Resent-Message-Id: <E1oir15-003Q81-Vc@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <mnot@mnot.net>) id 1oir14-003Q6i-Aq for ietf-http-wg@listhub.w3.org; Thu, 13 Oct 2022 05:44:22 +0000
Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <mnot@mnot.net>) id 1oir12-00C2td-Le for ietf-http-wg@w3.org; Thu, 13 Oct 2022 05:44:22 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9636F5C00B9; Thu, 13 Oct 2022 01:44:09 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 13 Oct 2022 01:44:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1665639849; x= 1665726249; bh=NYci1xO9ZsB2i37pYwh3+1rkZbnX87ev+gUAmdxqxHc=; b=J OvEi4R1yjvwG5hB82JEY/nRa4SKJZ1xMFhmAkOjN8BH58VkX5AS8eWaPC4kSEhDs 3OdT8D9/aZ1nJRh51Nt/pbjcYG2QnlH1oOA4sufGZOW33Gvliz0A2WN+gJExPFUK FZyzjLTbO/2/xaC0OeRiJdQYtrQtKnl6g6IcWrO+70GSsPwl3l42gDGuVG9KlMIc 6buz5vMdxjhi5jG/N5m2ho1q+GJMe75gYE8Qr7pxWRa/VzgeS34OGa1VrX0h+Tft JXhqd7lwfpvqaPl9ShgVElVcuXZ8GZE2jdpi3j2nx2ijscXL8enLJyrXwmQtaWhm kvFQBXMRiKzNwVN6eAQdg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665639849; x= 1665726249; bh=NYci1xO9ZsB2i37pYwh3+1rkZbnX87ev+gUAmdxqxHc=; b=M KvpCUBLY9W55rtg+IK2oKOblFZ0JObReDV1QQHEIrCA41H/5/FWsB6lvweiW4bR3 uAhsoAkwd2pvlZfKOFDQjOpan1jtXvFmbLUQZiBUTo31PxtVe5ZSmioX43nBHEwT 0DebZyE9LwzWdAN0QEWHnOxtalQZYjYyy7Cts1dGvA69PmtAOst8c8+edP8aqudW tvip18OIFhQqm3+wnWJLQIGDTqs4lJbYYVhPPgiUC9rb0FOKLO7Sp9FpTSQC+Avv gsOQ/qOlvG3SeXvppUxdMp0YSSyVNWJ1ZAVhlRFOgRsVKqhWl5JsWsmAqtRWrtZD q8JEW2T9zc2gs4lS+vWPQ==
X-ME-Sender: <xms:qaVHY0hT7XhqhOC9I3J-UKdRuxq29uEcqC5cqaAmrvjF2thRSqgv9w> <xme:qaVHY9BBNTRt2_Ca5mBxvOF5p5Vk7DxgF1n3UATiWi4S6y4sZgrtTYw7rSWDyEs9v AmsKsaVAoPBHr8jLg>
X-ME-Received: <xmr:qaVHY8E97haYlmPrEq80g-Vv6vVx6qEheidiCe7pYmilOp0O_8VvCxpBBYWtkCvOJJfY7-RX0A6HcwfqUWrgVbihWQX20hscyxbCIcRIdDe-JFniL_yUTACr>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeejledguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurheptggguffhjgffvefgkfhfvffose htqhhmtdhhtddvnecuhfhrohhmpeforghrkhcupfhothhtihhnghhhrghmuceomhhnohht sehmnhhothdrnhgvtheqnecuggftrfgrthhtvghrnheptddtgefgueevtddugfdtkeffud egveetffegjeelhfdvtedvueejteegueegteetnecuffhomhgrihhnpehmnhhothdrnhgv thenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmnh hothesmhhnohhtrdhnvght
X-ME-Proxy: <xmx:qaVHY1Qdu19PrO_ifN2V8AGOPC6QyKxjkHbWQvH_S6gAL2j2psfwFQ> <xmx:qaVHYxy5uPxifgzEQSs3Krqxem2vbVQpy63jMzzlPMl-ie2xbjZxxA> <xmx:qaVHYz6VrP8pRZTfJPY1SK9_J_gcWvRcnr5KW9R_AbWMXQ5TZprfYQ> <xmx:qaVHYyr_0BLnFuzSy1mFFTKbw84R3JkJJW9_p-z8LpAKHfUELj7ySA>
Feedback-ID: ie6694242:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Oct 2022 01:44:07 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <202210130542.29D5gbaI092977@critter.freebsd.dk>
Date: Thu, 13 Oct 2022 16:44:04 +1100
Cc: Willy Tarreau <w@1wt.eu>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <CD1C5D1F-9BA3-4B92-B6B1-8601997D09A6@mnot.net>
References: <37AA7568-86A9-4543-845F-EA2DAAA946B1@mnot.net> <20221013023941.GA15353@1wt.eu> <202210130542.29D5gbaI092977@critter.freebsd.dk>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
Received-SPF: pass client-ip=66.111.4.27; envelope-from=mnot@mnot.net; helo=out3-smtp.messagingengine.com
X-W3C-Hub-DKIM-Status: validation passed: (address=mnot@mnot.net domain=mnot.net), signature is good
X-W3C-Hub-DKIM-Status: validation passed: (address=mnot@mnot.net domain=messagingengine.com), signature is good
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, 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 1oir12-00C2td-Le 368b668c3ab46495204739b408aa6f03
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Revising Structured Fields: scope
Archived-At: <https://www.w3.org/mid/CD1C5D1F-9BA3-4B92-B6B1-8601997D09A6@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40441
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>

Just to add -- there's a BIG difference between adding a new datatype that headers can opt into, and changing the parsing algorithm for existing types. IMO we should be extremely wary about doing the latter, and we've already discussed this issue quite a bit.

Cheers,

> On 13 Oct 2022, at 4:42 pm, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:
> 
> --------
> Willy Tarreau writes:
> 
>> I would really
>> like it if we would remove that limitation so that we could hope to more
>> easily retrofit other fields there, and it doesn't seem like too complicated
>> change to me to simply add "sf-empty" to the bare-item definition, which
>> would likely solve this.
> 
> I fear that codifying that would encourage more headers with
> such behaviour, which I assume we do not want ?
> 
> I would far prefer to let the very few headers which has this behaviour
> be special-cased in their own definition.
> 
> If I am wrong about that, and if you mean something like adding in 4.1:
> 
> 	0.   If the structure value is sf-empty, return an empty string.
> 
> and in 4.2:
> 
> 	1a.  If sf-empty is a permissible field value and input_string
> 	     consists entirely of SP characters, return sf-empty.
> 
> That seems mostly harmless to me.
> 
> If you want sf-empty anywhere else, I am a firm NO, because it would
> require significant work to redefine inner_list and maybe other places.
> 
> Poul-Henning
> 
> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe    
> Never attribute to malice what can adequately be explained by incompetence.

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