Re: lists in header fields, was: How to reset ALTSVC

"Roy T. Fielding" <fielding@gbiv.com> Tue, 08 September 2015 11:03 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BE3361B3ABE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 8 Sep 2015 04:03:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 5YCbj8vfI6xk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 8 Sep 2015 04:03:24 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E6ACD1B3AA7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 8 Sep 2015 04:03:23 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZZGcv-0004DW-1q for ietf-http-wg-dist@listhub.w3.org; Tue, 08 Sep 2015 10:59:49 +0000
Resent-Date: Tue, 08 Sep 2015 10:59:49 +0000
Resent-Message-Id: <E1ZZGcv-0004DW-1q@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <fielding@gbiv.com>) id 1ZZGcp-0004Cl-L9 for ietf-http-wg@listhub.w3.org; Tue, 08 Sep 2015 10:59:43 +0000
Received: from sub4.mail.dreamhost.com ([69.163.253.135] helo=homiemail-a16.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.80) (envelope-from <fielding@gbiv.com>) id 1ZZGco-0005ju-75 for ietf-http-wg@w3.org; Tue, 08 Sep 2015 10:59:43 +0000
Received: from homiemail-a16.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a16.g.dreamhost.com (Postfix) with ESMTP id 382305080E4; Tue, 8 Sep 2015 03:59:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=YuvJIYw5gogQlgcuQH9nK0MyD/I=; b=sB5Ypsjns9mYaL65fvc/vLnbBuKv giAM0yKnXBqhRf46xEyZIEomc+O3EaYqncEn2FfM0NEZgkO0sjk8MiLgk/OR+uOu yOPR4e8GT0jE3xBF4n3qsDEq4t9R4Io9KJGbN+sn0wLTsQk9SYDko4pPTrQBnZVK sWpZ1CKvu7VTVys=
Received: from [10.20.6.59] (unknown [77.108.152.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a16.g.dreamhost.com (Postfix) with ESMTPSA id AEBA45080E3; Tue, 8 Sep 2015 03:59:19 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <55EEB2C8.4080005@gmx.de>
Date: Tue, 08 Sep 2015 11:59:23 +0100
Cc: HTTP <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <C3932D01-DD29-4EB1-BF38-64AD656B572F@gbiv.com>
References: <CACMu3tp-+YH2HYx4y8PrW8CQ7fZHB-By5Qg6Wk3hGHAbYCADCg@mail.gmail.com> <CABkgnnV5qS=dhVGXH1rPiLYvW1SQivjKENypQvEt-4mCs_Df6w@mail.gmail.com> <CAJ_4DfR0e4r-iW=d2jmT5OB04pDFkZJZU4z0RNcBx7G4pzYBUg@mail.gmail.com> <64587696-EAE4-44B4-9267-84DC841F0E14@mnot.net> <CAJ_4DfQUzNeHOg2vshACGC-kWGL-2dfVBHP0C35zYyGnmro2Vg@mail.gmail.com> <CACMu3touFffvkA=361VRXm_d+bE49drRk8ZRAUD-oZFDjhGmTg@mail.gmail.com> <55DE9B0A.70301@gmx.de> <55EEB2C8.4080005@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.2104)
Received-SPF: none client-ip=69.163.253.135; envelope-from=fielding@gbiv.com; helo=homiemail-a16.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-9.7
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1ZZGco-0005ju-75 941fb4b7a6c72e0ac9731804bf701896
X-Original-To: ietf-http-wg@w3.org
Subject: Re: lists in header fields, was: How to reset ALTSVC
Archived-At: <http://www.w3.org/mid/C3932D01-DD29-4EB1-BF38-64AD656B572F@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30187
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Sep 8, 2015, at 11:04 AM, Julian Reschke <julian.reschke@gmx.de> wrote:
> 
> On 2015-08-27 07:07, Julian Reschke wrote:
>> ...
>>> Also, since "clear" clears entries including the ones in the same
>>> header, why could there be multiple alt-values?  Would instead of
>>> 
>>> Alt-Svc       = 1#alt-value
>>> alt-value     = clear / ( alternative *( OWS ";" OWS parameter ) )
>>> 
>>> the following:
>>> 
>>> Alt-Svc       = clear / 1#alt-value
>>> alt-value     = alternative *( OWS ";" OWS parameter )
>>> 
>>> not make more sense?
>>> ...
>> 
>> It would, but we are constrained by the HTTP header field semantics. A
>> header field value is either list-shaped or it is not. We can't choose
>> based on the field contents.
>> ...
> 
> But then, RFC 7231 has (in <http://greenbytes.de/tech/webdav/rfc7231.html#header.vary>):
> 
>>  Vary = "*" / 1#field-name
> 
> I'm not totally happy with this, but it's a precedent and maybe I'm just too pedantic :-)

Just a tad.

> Are people ok with changing the definition as proposed by Bence Béky, or should I open a ticket for rfc7231bis?

I think it should be clear that HTTP allows zero, singular, and infinity
as effectively separate potential value syntax for the same field name.
I don't see any problem with that (assuming the zero and singular syntax don't
contain a comma and the singular syntax is readily distinguished from 1#1value).

IOW, it's a feature.

....Roy