Re: Empty lists in Structured Headers (#781)

Mark Nottingham <mnot@mnot.net> Thu, 02 May 2019 06:30 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 916921200A0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 1 May 2019 23:30:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.999
X-Spam-Level:
X-Spam-Status: No, score=-2.999 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, MAILING_LIST_MULTI=-1, 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=JpT2T6zr; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=2THbtbNB
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 i52h7XdMKynD for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 1 May 2019 23:30:17 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 62B5C120052 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 1 May 2019 23:30:17 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hM5D1-0008Mf-8t for ietf-http-wg-dist@listhub.w3.org; Thu, 02 May 2019 06:28:43 +0000
Resent-Date: Thu, 02 May 2019 06:28:43 +0000
Resent-Message-Id: <E1hM5D1-0008Mf-8t@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1hM5Cz-0008Lt-4i for ietf-http-wg@listhub.w3.org; Thu, 02 May 2019 06:28:41 +0000
Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <mnot@mnot.net>) id 1hM5Cx-0000Eo-NH for ietf-http-wg@w3.org; Thu, 02 May 2019 06:28:40 +0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 85187231E0; Thu, 2 May 2019 02:28:17 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 02 May 2019 02:28:17 -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=3 lsX58ww8rQkPORAZkiK45nFZY7o/6Bb1zucQs/5SlU=; b=JpT2T6zrIRWxXqkPW V2uACEfWzNNBcNLkw+uaDSiR2AEDioaJkzhi+fIySlGhUqfvSzwdysdazxyxxqJS CduBQCVu1oFgeXMg5VqaHYTY+8bORY4I/XMKDG7ntUEwQXkmwZp6SeMIvehxCdFR YAc2So+/d4CDPqh1cMgBB4HQmUVJDp5557simWQ3QFke+cNvO3c+YwlssHIwzIyK O3ZEgGeN0VEpvwDOJmLiiIuHDYjezZbzFWTJG0GaH704vXWszxrHXqc3csSDTV2A kDv/+hpG04USqoswfXVDjpmEmUofaKiTceWpaqLMlLH+DVFavuJAsnOch4uxUCHl fgPNw==
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=3lsX58ww8rQkPORAZkiK45nFZY7o/6Bb1zucQs/5S lU=; b=2THbtbNBMqNgMOZOPGJmcwrkfEhUofl5H8AjCfkeUx+362s+KGjCzE5+X 91Gcmw4cg1vXb4Ic82ypmA9YtQIW+VNAkhjSJF0+zIUvsVV/U+sK2TezEwUzEV1u GCTtS6kjt4o8We324f2ub8V1MFecHPGHLt8Z4svu0q3ZBsX+YIr6RS7uPpPFIWQu ywNNgu0KkFdAx7vbALKF6bsY4hUNcz/LLvAnD9fPyZkiomaTJurV0wX2gJL4Ue5B eGF+4D6irZJlG3AO3OVAsQYYWQIY6FriqiHSCcxoNajrmWgXIXyvfndYl/yAZVHO neQyjN2nzqqvI3mud1Lk5RCdFF3iA==
X-ME-Sender: <xms:AI7KXHN-L6r6ONovZsYeXoVzYP22Ricp-6kgUoemERe4lA9RyYZR0A>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrieekgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeforghrkhcu pfhothhtihhnghhhrghmuceomhhnohhtsehmnhhothdrnhgvtheqnecuffhomhgrihhnpe hgrhgvvghnsgihthgvshdruggvpdhgihhthhhusgdrtghomhdpmhhnohhtrdhnvghtnecu kfhppedugeegrddufeeirddujeehrddvkeenucfrrghrrghmpehmrghilhhfrhhomhepmh hnohhtsehmnhhothdrnhgvthenucevlhhushhtvghrufhiiigvpedt
X-ME-Proxy: <xmx:AI7KXPfYp50ZbI2nEk1suhdXYaI56PT5M-h7xZ_YHrmO42eAaIloUw> <xmx:AI7KXCVhji0L3h-mhmtLdJ5B5x0GszK7t2OJSkspW_84lZWhH94MNg> <xmx:AI7KXI-Cc5N4Z_TAOWtxKqv0iLrliFVNdT6rVGwg6znclvRlYG2vig> <xmx:AY7KXBZqQGHtG5zsimQHQ718nUIhiiMlFjLnPhM-GlzO8NOpKxgxDg>
Received: from macbook-pro.mnot.net (unknown [144.136.175.28]) by mail.messagingengine.com (Postfix) with ESMTPA id 398C6103D4; Thu, 2 May 2019 02:28:14 -0400 (EDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <ba411a25-c389-3470-5cf3-8abd0779da90@gmx.de>
Date: Thu, 02 May 2019 16:28:11 +1000
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>
Content-Transfer-Encoding: quoted-printable
Message-Id: <A9057359-EBD8-4FF9-88A7-851ACA86C2EF@mnot.net>
References: <D99820F1-D169-468E-BA31-68AA710C3CC4@mnot.net> <ba411a25-c389-3470-5cf3-8abd0779da90@gmx.de>
To: "Julian F. Reschke" <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.3445.104.8)
Received-SPF: pass client-ip=66.111.4.26; envelope-from=mnot@mnot.net; helo=out2-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-6.2
X-W3C-Hub-Spam-Report: AWL=3.568, 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: titan.w3.org 1hM5Cx-0000Eo-NH 33da28c2e6ac0b36aa3e089ff6b1c701
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Empty lists in Structured Headers (#781)
Archived-At: <https://www.w3.org/mid/A9057359-EBD8-4FF9-88A7-851ACA86C2EF@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36577
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 2 May 2019, at 4:24 pm, Julian Reschke <julian.reschke@gmx.de> wrote:
> 
> In
> <https://greenbytes.de/tech/webdav/draft-ietf-httpbis-header-structure-10.html#specify>,
> we currently say:
> 
> "Specify the header field’s allowed syntax for values, in terms of the
> types described in Section 3, along with their associated semantics.
> Syntax definitions are encouraged to use the ABNF rules beginning with
> “sh-“ defined in this specification."
> 
> Does this mean, that a definition like
> 
>  MyField = [ sh-list ]
> 
> is an acceptable use of the syntax? (see
> <https://github.com/httpwg/http-extensions/issues/781#issue-426418064>).

I think it's a *possible* use of the syntax; however, you'd need to accompany it with some prose that directed the parser what to do when SH parsing fails on an empty value. SH pretty strongly steers people away form doing that, so if by "acceptable" you mean "recommended", I think no.

Happy to clarify the text you quote above to make that more clear (we probably need to take another pass at the author recommendations anyway).

Cheers,



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