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

Benjamin Kaduk <bkaduk@akamai.com> Tue, 19 May 2020 02:56 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 AACDF3A1126 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 May 2020 19:56:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.85
X-Spam-Level:
X-Spam-Status: No, score=-0.85 tagged_above=-999 required=5 tests=[DKIMWL_WL_HIGH=-0.001, 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=akamai.com
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 3ghfqEp6NHB9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 May 2020 19:56:27 -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 76B253A113C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 18 May 2020 19:56:24 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jasQK-0007lr-Ta for ietf-http-wg-dist@listhub.w3.org; Tue, 19 May 2020 02:56:08 +0000
Resent-Date: Tue, 19 May 2020 02:56:08 +0000
Resent-Message-Id: <E1jasQK-0007lr-Ta@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 <bkaduk@akamai.com>) id 1jasQJ-0007l6-N7 for ietf-http-wg@listhub.w3.org; Tue, 19 May 2020 02:56:07 +0000
Received: from mx0b-00190b01.pphosted.com ([2620:100:9005:57f::1]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <bkaduk@akamai.com>) id 1jasQI-0000Jd-3R for ietf-http-wg@w3.org; Tue, 19 May 2020 02:56:07 +0000
Received: from pps.filterd (m0050096.ppops.net [127.0.0.1]) by m0050096.ppops.net-00190b01. (8.16.0.42/8.16.0.42) with SMTP id 04J2e25p006288; Tue, 19 May 2020 03:55:48 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=jan2016.eng; bh=jSwTp1aL7DBRZcxizjf+BSXdglBXpwN/TSzsH8XMpto=; b=PoVhJElJACJcPwLpeUJZDcp/QWjCC2f8x2yEjss8x7XhFv2znDoQq1xZf+DdICyQukRG wkFE58V8b/+A46SkwkD1FQzN0onDQFCwtxRYuJ7WPYj5mqlAUceSEleXQPu48F7TfKVy DS285b6eSFP+Tp3phYpGMQOynL555zS4dCiWbPemDS9GnxC/lfIG4+U/Fa/P+w32GC2A UpItqClpwfQ6wxwhAx16v62yppUYw5bJIxvOtGswZIfWZjlqm3ukWzdtkGDpLfEBaw3G w9WP0tsX2IXc0KaUdiFEneOgF/1F5psdZL90fWcipvihMewUm5XUTrwssFyHFVRmwiz8 Rg==
Received: from prod-mail-ppoint3 (a72-247-45-31.deploy.static.akamaitechnologies.com [72.247.45.31] (may be forged)) by m0050096.ppops.net-00190b01. with ESMTP id 3128kd1ck2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 May 2020 03:55:48 +0100
Received: from pps.filterd (prod-mail-ppoint3.akamai.com [127.0.0.1]) by prod-mail-ppoint3.akamai.com (8.16.0.27/8.16.0.27) with SMTP id 04J2lbYA014557; Mon, 18 May 2020 22:55:48 -0400
Received: from prod-mail-relay18.dfw02.corp.akamai.com ([172.27.165.172]) by prod-mail-ppoint3.akamai.com with ESMTP id 31430grt24-1; Mon, 18 May 2020 22:55:47 -0400
Received: from akamai.com (unknown [172.19.16.134]) by prod-mail-relay18.dfw02.corp.akamai.com (Postfix) with ESMTP id 6B2AD7E; Tue, 19 May 2020 02:55:46 +0000 (GMT)
Date: Mon, 18 May 2020 19:55:45 -0700
From: Benjamin Kaduk <bkaduk@akamai.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Mark Nottingham <mnot@mnot.net>, 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
Message-ID: <20200519025544.GF3811@akamai.com>
References: <158740521959.1174.9556681562748997101@ietfa.amsl.com> <bb3a29ff-1a0f-964d-c764-4d4819d338da@gmx.de> <1d494d71-b837-729a-62f3-5ba8ca6549cb@gmx.de> <20200518182746.GC3811@akamai.com> <45ec9bc0-2a81-edf1-6054-7c5bb3cb8140@gmx.de> <20200518212334.GD3811@akamai.com> <721A2334-D1C9-4A34-BE4C-0FA540B4E9D4@mnot.net> <ab410de8-ee88-d359-db8c-85fb8bb3dd43@gmx.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <ab410de8-ee88-d359-db8c-85fb8bb3dd43@gmx.de>
User-Agent: Mutt/1.9.4 (2018-02-28)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-18_11:2020-05-15,2020-05-18 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2004280000 definitions=main-2005190023
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-18_11:2020-05-15,2020-05-18 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 adultscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 malwarescore=0 cotscore=-2147483648 bulkscore=0 phishscore=0 impostorscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005190023
Received-SPF: pass client-ip=2620:100:9005:57f::1; envelope-from=bkaduk@akamai.com; helo=mx0b-00190b01.pphosted.com
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jasQI-0000Jd-3R bb7c89c952ff7114bef31b274f62a290
X-Original-To: ietf-http-wg@w3.org
Subject: Re: empty lists?, was: Last Call: <draft-ietf-httpbis-header-structure-18.txt> (Structured Field Values for HTTP) to Proposed Standard
Archived-At: <https://www.w3.org/mid/20200519025544.GF3811@akamai.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37661
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 Tue, May 19, 2020 at 04:49:58AM +0200, Julian Reschke wrote:
> On 19.05.2020 01:20, Mark Nottingham wrote:
> > 
> > 
> > > On 19 May 2020, at 7:23 am, Benjamin Kaduk <bkaduk@akamai.com> wrote:
> > > 
> > > > > You saw
> > > > > 
> > > > >     An empty List is denoted by not serializing the field at all.
> > > > > 
> > > > > right?
> > > > 
> > > > That's about serialization.
> > > > 
> > > > 4.2.1 seems to parse an empty string into an empty list.
> > > > 
> > > > AFAICT, that's in conflict with the ABNF.
> > > 
> > > Thanks for clarifying.
> > 
> > As per S 1.2 [1], the ABNF is not for parsing; it's for 'illustrat[ing] the range of acceptable wire representations.'
> > 
> > The ABNF requires at least one member because sending an empty field value is not good practice; it's not something we encourage.
> > ...
> 
> So the real inconsistency here is that sending an empty value is not ok
> (forbidden?, not encouraged?), but an empty string is a valid parser input.

That does seem like a key topic for the DISCUSS ballot I just submitted.
(I wanted to get the rest of my comments available, and don't intend for
my DISCUSS text to be "the final word"; let's please continue this discussion
and go for clarity.)

-Ben