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

Julian Reschke <julian.reschke@gmx.de> Sat, 19 September 2015 18:39 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 1AEA91B6376 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 19 Sep 2015 11:39:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.912
X-Spam-Level:
X-Spam-Status: No, score=-6.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 6XNUl2Np3TvO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 19 Sep 2015 11:39:54 -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 A2EFD1B6375 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 19 Sep 2015 11:39:54 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ZdN0C-0002EE-5Z for ietf-http-wg-dist@listhub.w3.org; Sat, 19 Sep 2015 18:36:48 +0000
Resent-Date: Sat, 19 Sep 2015 18:36:48 +0000
Resent-Message-Id: <E1ZdN0C-0002EE-5Z@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1ZdN06-0002DI-2h for ietf-http-wg@listhub.w3.org; Sat, 19 Sep 2015 18:36:42 +0000
Received: from mout.gmx.net ([212.227.17.22]) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1ZdN02-0005mG-Tv for ietf-http-wg@w3.org; Sat, 19 Sep 2015 18:36:40 +0000
Received: from [192.168.178.20] ([93.217.70.234]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MLvLE-1ZVgPs1zHI-007jjE; Sat, 19 Sep 2015 20:36:08 +0200
To: "Roy T. Fielding" <fielding@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> <C3932D01-DD29-4EB1-BF38-64AD656B572F@gbiv.com>
Cc: HTTP <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <55FDAB18.9000507@gmx.de>
Date: Sat, 19 Sep 2015 20:36:08 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <C3932D01-DD29-4EB1-BF38-64AD656B572F@gbiv.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:HF2NM3HxS+yRLpYKYX/NA1wiRH/yUc2z+jERzLQHbfCDuRRcWDs WHiCs/2Z68JZVt1FSF/+vtyikMXHTHD/ySREXVmZACI+Sthnuv8tuibrdDwf88WgApz9eXV fylCgq4O/1gdPhEE4goExdHbs0E8f8pUZ1BnzIW8LxZQXgQtsjC45STnTAnZfP4KDUCJnGo K9qaxBEY8MIs6Sr4VWh3A==
X-UI-Out-Filterresults: notjunk:1;V01:K0:pwy/0WG2zic=:6GzgdW3I7quwdjbVpgs3Q5 uvLmdlSfEesSfDPIJPubURxz0kG1dlrnwAzwVrzpw4HJm3qCpMMIJkRaJIkTbnZ4rRpX+go/D YE74mzAf4JbE+Y85eMDKdTST6tc0P8jjtb5QGooiLaOeFM/kTpWfmFWgqPB2BCJXvp8muZgRI cQii88DYAURMesLhITpTzyvdgYlQ/OzIyV2uIFkocVX/GRmrl7OVZWXkvuzSFxQRCXLpfNOHV 0BWZZN62DL5W5K/SBAsuyngwHqDJnqSZ0XuaMznkMHXgzdvj0BHekAjmDwyVSaYnDsTZXiRyW 7g36WkAo48sw5qWzXVXkOZz+2em5DW58SRP94wLrQVEFWW0j1mO3D8RcG4k5xwF6CXm+DGrMR GPpCEd/aIl4gfihFfNFPBoqvJKUVaYtzWm0vGRXPOZgSnaIetp0oTGbMS3TTMgtxnWIwppdre S7LDS348+4HjYJyxQ1kG48Bx8HHP0ZF+LjIqD+b7x2UIYTaWImQWZ8Y4qEjnPyoQ9YcgLgCzK f4dL/wYrx73A/Sb03JtvyvIMgL9RHpFUzVurCcsRwnbY/kKCwfKmAOVBrxDED87R9YVRNlf21 FCQLukpuw8xiROH/qXwA8blqIZHHcLVJvSapq0K3jdOnJpgqldqQxSAtvUNovfQnLw1BaSswE PuQSUjLDdtDdNEhJycJZSjdcgTIL8KsKmrHP/4pjE+LnyWD19C0F21cWWIADSMIAzWJjEtG+q H3O6HYhKZx/JadPX4yGSWhiFpvu34PkHCN/NEw==
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.7
X-W3C-Hub-Spam-Report: AWL=-0.073, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1ZdN02-0005mG-Tv 3363ae5e8c6d20ced297aa13bd7b6966
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/55FDAB18.9000507@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30230
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 2015-09-08 12:59, Roy T. Fielding wrote:
> 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.

OK, adjusted in 
<https://github.com/httpwg/http-extensions/commit/2757d7bfa244c33df5d4fdf8604c60f6645a7816>.

Best regards, Julian