Re: Empty lists in Structured Headers (#781)

Julian Reschke <julian.reschke@gmx.de> Thu, 13 June 2019 09:05 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 9103312028A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 13 Jun 2019 02:05:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.9
X-Spam-Level:
X-Spam-Status: No, score=-2.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 aUcUiTTKxmWv for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 13 Jun 2019 02:05:57 -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 00D201200CD for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 13 Jun 2019 02:05:56 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1hbLeD-0004OE-IL for ietf-http-wg-dist@listhub.w3.org; Thu, 13 Jun 2019 09:03:53 +0000
Resent-Date: Thu, 13 Jun 2019 09:03:53 +0000
Resent-Message-Id: <E1hbLeD-0004OE-IL@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 <julian.reschke@gmx.de>) id 1hbLeA-0004NS-Qa for ietf-http-wg@listhub.w3.org; Thu, 13 Jun 2019 09:03:50 +0000
Received: from mout.gmx.net ([212.227.17.22]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <julian.reschke@gmx.de>) id 1hbLe9-0004v2-C3 for ietf-http-wg@w3.org; Thu, 13 Jun 2019 09:03:50 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1560416599; bh=lOtiS8gt9fMngZAteO7k+ymKkOL98haMk9mME6N3ThI=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=S2VDRlrluuskgmL+d7vaIRwSH4jVux65nDfSsLOgqh9CKToBoQuiewfkkwGo3Z3Na yquOVXJaNhyAtmzWnYN2Gd/LNg3W5ojsgZPn3s8goBJKk1iqEs2E6QP4ANzH5eEMJK s+U10dvbHROJe5GQVDF5Q/FrMVCNcjcAwmUdPDC0=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.34] ([217.91.35.233]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M89L1-1hfSMv444h-005JCV; Thu, 13 Jun 2019 11:03:19 +0200
To: Mark Nottingham <mnot@mnot.net>, Tommy Pauly <tpauly@apple.com>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>
References: <D99820F1-D169-468E-BA31-68AA710C3CC4@mnot.net> <B3BF258C-ECB2-4F07-83EF-2D491E236718@apple.com> <FB82ED8D-5AD0-480E-9E1D-C45EB55AAEAD@mnot.net>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <5d76d2d0-e7f3-3e19-237d-3b0a4cbcd22a@gmx.de>
Date: Thu, 13 Jun 2019 11:03:20 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
MIME-Version: 1.0
In-Reply-To: <FB82ED8D-5AD0-480E-9E1D-C45EB55AAEAD@mnot.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:E88isLFaYqZEqyHYUIVZ3nySlaUqGmSnEGBL4CupRYxkdNMpRIF rxIz0Vw3ANrVwX8nEHJ7aPpIOzOatpePC9YvUFoAWCHb9cxZgqv+fWcj4+ojfdWd34NX6AL MyFJMkXCmbza5z8izdT1S2U7HSzrjLwwAI5nqAGOeD45VLolnzreukIZrpjmqtYR6QnEIpw BJi0x1WqDVLoNjbQmKiTA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:c6lgB/aG8mg=:kpqpJaMib+zrLy7xFkGxJh V714Y+SVjk9bzgEAoaCJFjgNK/BWFJXiIRb+STZUmTzhmt34J+wBj0Qfqt75KMWbF/sG9A80n Dz8NvA43gLXv7ceBDJuA1Wuv4DRtmqJYHh7mcM+LKilHdmd6EzU7voYmhWSbAsmYS26rg0+yb SIx0Ln6AJH0/saw7Wlxbkjjj2czl9+qgz/3j2ipKgNad0c9ravUXzPZk890xc801GaP+1HhD5 pJQZsMat+xigafsITUDi4dVshe0ZZrvNVnYlrlV5hEsWsaxgOid6KZTFd0PPnJwUsCS867gZd 8QjPqv3AgGbN17Gs9UdLg1SQnfUZVtrJ8p0WM6Wv7kOPfd1lMd7nRyx1A8e5snsGcBtx0fnBS t7sRiJpYNsaLF9bmaSkszhL5f0T6W5ZEJi6LY42fH/+ZQ55iGw7CkPP4tw9U3ZEdGHzIzAFTo rcN3jTRlogdwOrC7cuynxJhC6ENpxu0t3cnjwgqYnqtcKvzaWWHJ3rgp1UnyqyGdau3OWWx/N 6nM7ntbz36j8NRIWrn8KMvT5KbHaYDdmLqJQaDLpumGKgy3rgOnBk/c2ZyYu36M6fIkKVWv4K MhjrsKVJMHuY9teyqUGlVUVkeAf97YUss8kRz+gz/sxYD7Y+a+AsOLAVB6T+N0rJ592xcaler X8zo+YvywVaJ9UpOggrAhzEmL2c11ufsNFB2kB1O4BR/1ANTsgGlRGoPz6rOdI73Dzh3z0ORe fXNxjQJPtxYpGkI2EVfC74RwYEIZ/ECgY7t+t9nBKQxvL2qDjU7jkjGnMfSsw3ntVeHe9JxKG fH1oSSrq2O9toJ/X3pMKR8LJ6F++0CbMSzMOc5CHmmCovB31g8lt6U2BDTJyPu3dqHuyKi/ev 9Fd+Ja8RlqhrpCETn7MXk7ngB/cM3S2gJINhqguXJx3BevIM0PljhWHVMzDYsHhnbCWXwkbrw iQe2NXpYBc+uLaNtCwx1bN71yJuVr724lijwpKzTRkQrF/uQ+kaXM
Received-SPF: pass client-ip=212.227.17.22; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=-0.002, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1hbLe9-0004v2-C3 0117643980cd5f026c86eea4d203cfe9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Empty lists in Structured Headers (#781)
Archived-At: <https://www.w3.org/mid/5d76d2d0-e7f3-3e19-237d-3b0a4cbcd22a@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36710
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 13.06.2019 10:43, Mark Nottingham wrote:
> ...
> I'm not sure the results here are helping, and I'd hate for people to think that we're *voting* :)
>
> After thinking about this a bit more, I think this issue is backwards; it's asking why we don't support a specific syntax, rather than a specific data model.
>
> If people just want to make sure we can express an empty list in SH, that's pretty easy; we can say that the absence of a list-based SH field is equivalent to an empty list.

That would mean that there is no distinction between an absent value
(header field not present at all) and an empty list (header field
present but empty).

I don't claim that it's a good idea to tie any semantics to this, but on
the other hand not allowing an empty field value seems to make things
more complicated than needed.

> However, if people want to map a *specific* syntax to an empty list (namely, a header field name with an empty or whitespace-only value), I'd like to understand why. There's only been one example given, and there isn't any deployment of the specified semantics AFAIK -- reinforcing the notion that doing so is bad practice. And, as a reminder (sorry for sounding like a broken record), the whole point of SH is that we're not mapping every conceivable field value into the data model; just the conventions that are useful (in other words, paving the cowpaths).
>
> Which bucket are the people who are clamouring for this in?

In between, I'd say :-)

Best regards, Julian