Re: Media type parameters optional between semicolons

Julian Reschke <julian.reschke@gmx.de> Wed, 13 October 2021 13:24 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 238873A097B for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Oct 2021 06:24:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.898
X-Spam-Level:
X-Spam-Status: No, score=-2.898 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, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 7eJuNNBCrCqk for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Oct 2021 06:24:17 -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 A6B063A0976 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 13 Oct 2021 06:24:17 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1maeCp-0003B6-2b for ietf-http-wg-dist@listhub.w3.org; Wed, 13 Oct 2021 13:22:03 +0000
Resent-Date: Wed, 13 Oct 2021 13:22:03 +0000
Resent-Message-Id: <E1maeCp-0003B6-2b@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 1maeCn-00036J-7U for ietf-http-wg@listhub.w3.org; Wed, 13 Oct 2021 13:22:01 +0000
Received: from mout.gmx.net ([212.227.17.20]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <julian.reschke@gmx.de>) id 1maeCl-0000GQ-3x for ietf-http-wg@w3.org; Wed, 13 Oct 2021 13:22:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634131298; bh=GW+N5iWY5eQjXYa/h1PbzyXJPKXLB0G9cl/BaOpXjxk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Z2TiyUCQ7IAUv0+f5uWen2ObRj6DedGnuiaYfC5Watvzdw0QcWB2xPVICIsNGX5fw rZOD/d7Oyw07BLzFuWMYUmzMWLLv8piaDVv0DxAXuMkl9H4P7hE3/NUQfKIeH5UwJA szAfSYUrD6l6+hInHKqTdJxv38tBxwX4P4Ob/fyU=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.113.61] ([212.184.87.82]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N0oG5-1mvann0ZDZ-00wmqy; Wed, 13 Oct 2021 15:21:38 +0200
To: Carsten Bormann <cabo@tzi.org>
Cc: ietf-http-wg@w3.org
References: <EE88B2A9-F4D9-4328-A3EE-96BE4268B968@tzi.org> <abe47d2d-8ab5-d70a-2aef-4478f27671e3@gmx.de> <0CB55F24-CA87-4CD1-AE7C-FDEAE39575CB@tzi.org> <551bfe6f-fb5f-a472-68ef-bcf9c9b29426@gmx.de> <8DAF5EB8-C071-44E8-91CD-1F55473C5253@tzi.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <406f090f-bd4c-caa9-ae5f-b71a627efb9b@gmx.de>
Date: Wed, 13 Oct 2021 15:21:40 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <8DAF5EB8-C071-44E8-91CD-1F55473C5253@tzi.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:6F1YL2PoJ/EJ9SWBK3LfmPB+vfDIq1J5HlyD6acCxMAMQfu4Tta zY2wnn736coJPyA4w1TazRX3b2PKFT2h9oDmMV44CJbOLvI2Frd12Sel+/HzpsXuOfKN+Zl dehyF5M4XH1kqY81qi4QlQDDB9pOoMHPsfprRJVZfsWub72FWo5WC0isSuSgorMF7UV8mOt ecGJ5aWQBm77SasuA3CyA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:99zFq8+UUGM=:v4xk+l20c0dXarvd2eIiug HTgOGlEdGQyrB/rYK6R/1v3I1LsNKA9qrQBv9fCU9lfnWzvOSM8qNLCWJeWgV4P78wY7EEYWi tQ6ZldVWEZrsYTF5BuAJV6zkv8Ox0MkaoISMMZEMNe7y5PxvVfHWLJbQ233TCGFSs3FbBGNPd TxuT/DsjwKmWS3u95vvnhrdVgDwSG3+Uamu/+VmUg9mmqGC9mLB7BBFP3s6mdPbEgRDtvlEQu OINAFWapiXZ9L1WuRcRYltAtXWDOUFKlWKm98pL3FlFxEIUwyJ6Dj1gtBubsZx0BmJTOYdB3I bZY8tKYu91Zkhb24iCH+Ta6TSLdT/eBA6q/blrINv3qYeWRRWqPp7DX/UQuuiNOf4jyROMPiz GmG26ySr27jqfRYeGvmn7tCsjzc0J2FPWlnKPrtFMNYAW5F5lTddD8xejancKZruUEH0Jj1Hs Z7f8F+J69Pwq5jZd8OQZLB7CSiSXnCeKXXHv8mkv+l8c2TzJQl4jYDvcQSdnqgWMobxwiha0R i58KqqgtzvrGPlWEJZL6GUHWSfcMEuP1cakEHVs1LA+HmvaRQh+cLCgJjWwNM8/fSz1C6HPmK vyzW/aGwtdOoB+k3g3WyRwpejamgyMkfAWFuVfUy3eXD99coJDiIMNlfAwaq+0PEIiPReTPwo /q0aV3WBtTlsgLsmnCsmpiTME5xgvPm980oH8XozwWbYIrp2uoad5Iwa31ieLCiCQO8+0n+cx S1eIbgme8fjKFRrEyefClrTvT2RyBvKE6WyUAyes+M0+xdYI+v4VK9DVAEbpbbWQjZPA5YCpa eF66mTkA+wCe2jIM3BJ1H21WQAkcsot4MNZ8xW/Wmtm2yTFlUUE4Eyi24NVdxiXvnYv83RHiP 0g/gF7+HQ03rohPo4+ODswVXh7JXCQXaHLLOgvnZsPLviWDUXLn7U8eysdEsP0UlgwQCXF5Qk 2gNUU//GrrtViuW8pvAHrbxWCMa3B33lX6KYqc828dPRod9RM9xeVnr+zg1kPwPTOFHsRpWZ4 K+5YHiaz7sLa/4i9iroWQ2cyB+U86bOPwanAqEyK/zJrlAaxApHDqYfVxRPYMU8nMI6yUumpx NNSQED8tUwU0H0=
Received-SPF: pass client-ip=212.227.17.20; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-DKIM-Status: validation passed: (address=julian.reschke@gmx.de domain=gmx.net), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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 1maeCl-0000GQ-3x bccaa8802e34baf9b8e81ea121cc7368
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Media type parameters optional between semicolons
Archived-At: <https://www.w3.org/mid/406f090f-bd4c-caa9-ae5f-b71a627efb9b@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/39467
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>

Am 13.10.2021 um 15:05 schrieb Carsten Bormann:
>
>
>> On 2021-10-13, at 14:52, Julian Reschke <julian.reschke@gmx.de> wrote:
>>
>> Am 13.10.2021 um 08:56 schrieb Carsten Bormann:
>>> On 2021-10-13, at 08:48, Julian Reschke <julian.reschke@gmx.de> wrote:
>>>>
>>>> Am 12.10.2021 um 23:48 schrieb Carsten Bormann:
>>>>> https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-semantics-11
>>>>> says:
>>>>>
>>>>>     media-type = type "/" subtype parameters
>>>>>     parameters = *( OWS ";" OWS [ parameter ] )
>>>>>
>>>>> https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-semantics-10
>>>>> says:
>>>>>
>>>>>     media-type = type "/" subtype *( OWS ";" OWS parameter )
>>>>>
>>>>> Is the rationale for making the parameter optional documented?
>>>>>
>>>>> Where -10 would have allowed:
>>>>> text/plain;format=flowed
>>>>> … 11 now allows:
>>>>> text/plain;;;;format=flowed;;
>>>>>
>>>>> Very curious.
>>>>
>>>> See <https://github.com/httpwg/http-core/issues/33>.
>>>
>>> Thank you!
>>> So my conclusion is that this is on the same level as OWS or obs-text and should not be promoted in new specifications using this syntax.
>>
>> I would characterize it as something that many implementations decided
>> to accept despite it being invalid, and thus it got used in the wild.
>
> Sure, trying to outlaw these implementations doesn’t work for HTTP.
>
> But we are creating a different wild:
> Using media-types (content-types and content-codings, actually) in SenML.
>
> https://www.ietf.org/archive/id/draft-ietf-core-senml-data-ct-05.html#name-abnf (*)
>
>> Not sure about what new specifications you have in mind. If it really
>> replicates Content-Type syntax, I would just align with the current
>> spec.
>
> Which is exactly what we don’t want to do — carrying that 25-year old baggage (HTAB, obs-text…) into new software that doesn’t have to (directly) interoperate.
> (The use case really isn’t about copy-paste from an HTTP header to a SenML record; in that case carrying the baggage might make at least some sense.)
> ...

That may work if you require recipients to reject invalid values. If you
do not, you may end up in the same situation as the HTTP world.

 > ...

Best regards, Julian