Re: draft-ietf-httpbis-header-structure: handling multiple field values

Julian Reschke <julian.reschke@gmx.de> Tue, 12 May 2020 17:41 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 E78833A0839 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 12 May 2020 10:41:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.649
X-Spam-Level:
X-Spam-Status: No, score=-2.649 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 iDlzNRU9yjMV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 12 May 2020 10:41:10 -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 5D0FD3A082B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 12 May 2020 10:41:10 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jYYrm-00041w-4W for ietf-http-wg-dist@listhub.w3.org; Tue, 12 May 2020 17:38:54 +0000
Resent-Date: Tue, 12 May 2020 17:38:54 +0000
Resent-Message-Id: <E1jYYrm-00041w-4W@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 <julian.reschke@gmx.de>) id 1jYYrk-00041B-Kt for ietf-http-wg@listhub.w3.org; Tue, 12 May 2020 17:38:52 +0000
Received: from mout.gmx.net ([212.227.15.15]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1jYYri-0006DX-IQ for ietf-http-wg@w3.org; Tue, 12 May 2020 17:38:52 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1589305096; bh=X+KYw6lFRh9Udfsp//l8Z09qOGG2nQ59Dud2eb5qc2s=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=JUoY9izdVx9nDAOLpTQaxeD7sIsO6r0XhmbribklUpz2ekYTNNvwnr0vAkDpQFC07 wjVNvaoxITxjEEQ5Bu9VP/wx6+oDrKh93heVnGlLNWO0e2hfYyTyVUo7NDeE41xbdk 4anQwUh1STmNsMX8CkAIb4FvmRejxhvtzah7t2zg=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.182] ([84.171.146.181]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUGi9-1jh34F2DLf-00RKn9; Tue, 12 May 2020 19:38:16 +0200
To: Willy Tarreau <w@1wt.eu>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
References: <f55521dd-e1d3-d925-688c-c472ad67bfb4@gmx.de> <20200512172347.GB4817@1wt.eu>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <869e2f63-e5cc-6578-ed28-c17369473331@gmx.de>
Date: Tue, 12 May 2020 19:38:13 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0
MIME-Version: 1.0
In-Reply-To: <20200512172347.GB4817@1wt.eu>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:22oY8ykNutM6vQLkXojLHhxZUqFJ0TSDLkzmpCvfweOMUbH1sWp jXDVbZj1d7+x5QSpQjKtKAn04abZ6tBwwefLgIZtsjhf0LybYWzFbmeLWztTYXXvKh2mzRx oxt2dqoHylO1+eJjKn/5Z5wH36kn665lk0Q9N8JbaKZCirGFimrhotkFOmFoTPX3lfuRA0L ou3BuDPF1BGeiG4kWeSgQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:P1BW5aqtc3E=:kbxZ6L8KbCMBETWusSVQj4 5dk6ZL3iSdxjquCgP9N2m4u6ptwfv99z5jvvqr8p6Wq4kA12YghwtCr9TM7TrAijM6E9hZHKK hAI7zrpMiTyCjVl8oLqfsY2MGsd2KBo1tYJkvAkrf95MjFIuplyplmoVlqqV2reHyhj2pPW6Y SAEOrqINA9l/pm633hArcwxEnMndv/7fQrCxGt6dhXaLl2otzRAtN8ds2xhpLHj5jPvSxqzTT nxxi/445UilJXR0AOfEEiX82lCw8CJMvOLdMd3rOSRqToLEmnHPjM3RCzqUrnezJJqLEMyixj 5fgHJcyad/6QiMqvo6PFlPgx06HL4G/sbmaj3m40nxCLZ05X6lo7CdBJJpB37Go+g3L/8L1Q1 MRKLWmH40Z8ZEP7PNdV57hwx6+u/ehI0sF/OGelNd5SsKOjCgyG5y4RnrRP9+OsnnLqR6wAgX GXcX9T95R37/Qz2sfscZy2UbvfAMYQL4sQxhZFde4YPQdjHp/37cXt22cvIpbJJWdfN9pH373 fjuxe/HrOyI8ne777L7pyzGnljq7kaFj3dSsJsXbZgMMhoWw3+Fk0DYaURRxmsiBqqN1RiFga /SGIUYPp4tvXWzMWCdxM2rpmskxSFwaotKF8obXlFOrkEJbPXFvrL7PNEk6MxyE43ZuKfLESb 3QFz3Zu8dvPoSSOJ+U+9UXjmjDQu3agRXwOm9nupbI2bhv45M8gG9/cKvIUxuaQHEeAKBlMYX 5GPm4cX/w5tRumvGFZnd3AHzIZOg7vNjyIbnGcr3vIJeCRrYi6vBrFdkz9du7YvUL43Hr2Hh4 1pfs5v+JDzEtvWtxbH3qdWkyY9/tIOcTmrwlmjKRQcSfCOjt7o01H2xd4kcmDPxzooPXjv882 ntlIWIerfSxziRHqDhtpPGoi2AErSNXozfOdn5Jc+nenIHYQbBPkO98j5QVGKKdXBhozbzW2d 7LMAXTjucIdul1TsfYVi4KUJX1fatFBV1jY7ZhLs8zAkgCYMbsTr4Lxpjtv9P2EjKrMTF+mgo bvI6Ftmksl2CNeIaXFjTeq24g00mNoheI8y6qJTJvlxSfSBKIzFfMQA6BqkBUpYufpCqWx8P9 dioCJCH+tdjhU3b1X/1LDuBZ+ygZNPoECgm4QcA8v+W64DJdBW/sZr512iQ3nIPKuGyoj2a+E PZ722ohpmIfRaFQm0SfpXmQ3GBHF+F0wklRHRlfFSQ78yxKYoKUzj0L44Rp/+ZWMflKw29DtH B1sM2zougC2cNtnO0
Received-SPF: pass client-ip=212.227.15.15; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jYYri-0006DX-IQ 35caea9ca24774f9bf2792c9be174b2b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: draft-ietf-httpbis-header-structure: handling multiple field values
Archived-At: <https://www.w3.org/mid/869e2f63-e5cc-6578-ed28-c17369473331@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37601
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 12.05.2020 19:23, Willy Tarreau wrote:
> Hi Julian,
>
> On Tue, May 12, 2020 at 06:53:40PM +0200, Julian Reschke wrote:
>> Hi there,
>>
>> while working on an implementation I encountered the following question.
>>
>> Consider something defined as "sh-list". If a value is received spread
>> over multiple field instances, recipients *can* recombine the value
>> before processing. So for
>>
>>    Foo: "1
>>    Foo: 2"
>>
>> ...the parser would see the string "1,2" (or maybe "1, 2").
>>
>> What's not totally clear to me is whether recipients are *allowed* to
>> process the field values separately, in which case parsing would fail.
>
> Note that they might not be aware that these were two values
> because the folding might have been performed by an upstream
> gateway.
> ...

Yes, understood. (and that's actually mentioned in the spec)

Best regards, Julian