Re: [media-types] Media subtypes containing "+"

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Tue, 12 January 2021 07:58 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E61023A005D for <media-types@ietfa.amsl.com>; Mon, 11 Jan 2021 23:58:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.163
X-Spam-Level:
X-Spam-Status: No, score=-2.163 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.262, RCVD_IN_MSPIKE_H2=-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=itaoyama.onmicrosoft.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 5j-QyLl4X72c for <media-types@ietfa.amsl.com>; Mon, 11 Jan 2021 23:58:27 -0800 (PST)
Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-eopbgr1400109.outbound.protection.outlook.com [40.107.140.109]) (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 063933A003E for <media-types@ietf.org>; Mon, 11 Jan 2021 23:58:26 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hVkPvqoPnAamn8joXzlA3VDHrXwPCrpexi3kLf/mCLdRzOm6hx1YAz5dx+Q5gaufbFfM0PibaZg9Lo9ON6DSgMvZwA0yqjnavIYtyOQE7T0gd1R8AoJ3b7TeIUjnsPhqA2J7rqi4H8yNBM4UnUfCbra1C7jGwlft+iViVjj/6HLpOt8X83v3w2IWfkPyKu+IVCdtZ18mHm4l7cN0P6EymK6xOvGNGyY695a2fIqDMCPbaQS4grRKUiBTVIKnz14/Vx2rS/EVHSSaXwAbiPnS/0tETPEzohWfPcWd3xsnGjQ7/5RMIpZz9/LJKtwyk7XUUnQU7aP6GmfyQ/iA+lYQWw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VySXsJhAfg885vFxLhpPDZhL1PCBXHrMb1blkuuVFI8=; b=F/lWzjgCvZF31McOgxMqLVpel+nbTYxqHmmzx3eEqnJILld4ua7pQPJZBLuy6ByVGfOrOCPGkU+sYTpkQD+yXhzm/Yr7NFc+h/pjVXVCdZfKeXzVHXpD+Oxft4Io+LFCdfY4yxtq6tGwouqwZQ73xzzbSqVhoi1wWVbLUcHJ3Y/xZVE67QuUfg/NtkulQ1+WMpF3sKtxTLsIPWfy6X1z4RyEWMCffnMweOlNK+6WYIqfLsIRa0cPWTMeVICEFKzqdYB/Ime05RqiejwZAY5w13ZqenbX4qEzbXupEY/93WloRN8FlOXZwSGaFNk1FZDHMF20iBez/Kao3WGLPstbXg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=it.aoyama.ac.jp; dmarc=pass action=none header.from=it.aoyama.ac.jp; dkim=pass header.d=it.aoyama.ac.jp; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector2-itaoyama-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VySXsJhAfg885vFxLhpPDZhL1PCBXHrMb1blkuuVFI8=; b=rV25AkQbgfOgcT7vwB/4wGj38Z88nwO5RdG2lSZze3gEhKzYszeRwmj1rIkRZ1leYSHH3ih+GgPcSW9TuFy0ceCb9uScCAEVg08g0jVdc8xqI75st5UiuEO08AChmfZKk6KUT6YQBSkCN2ZfKyzRXGFDAvGhc3+nYazPbTja4i0=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=it.aoyama.ac.jp;
Received: from TYAPR01MB5689.jpnprd01.prod.outlook.com (2603:1096:404:8053::7) by TYXPR01MB1759.jpnprd01.prod.outlook.com (2603:1096:403:10::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6; Tue, 12 Jan 2021 07:58:24 +0000
Received: from TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::946a:9db2:a4b5:6b1f]) by TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::946a:9db2:a4b5:6b1f%7]) with mapi id 15.20.3742.012; Tue, 12 Jan 2021 07:58:24 +0000
To: Manu Sporny <msporny@digitalbazaar.com>, "Murray S. Kucherawy" <superuser@gmail.com>, rhiaro <amy@rhiaro.co.uk>
Cc: media-types@ietf.org
References: <e2ee2ce0-641f-de3e-b1b6-d375b24328ad@rhiaro.co.uk> <029ad5c8-b441-3a1e-997d-af1187bc8149@rhiaro.co.uk> <CAL0qLwYAnCSi6XQ2u8d-Xpt0SezpAiVbhGyDorrDm3vN-Sk9FA@mail.gmail.com> <44a5b068-6843-b176-66ff-7926d598bb36@it.aoyama.ac.jp> <988ced9f-bfa1-5e66-2c81-07edcba541b4@digitalbazaar.com>
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <da3a2b00-dea0-27c4-871a-4e0ba3fb7504@it.aoyama.ac.jp>
Date: Tue, 12 Jan 2021 16:58:22 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
In-Reply-To: <988ced9f-bfa1-5e66-2c81-07edcba541b4@digitalbazaar.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Originating-IP: [133.2.210.83]
X-ClientProxiedBy: TY2PR01CA0010.jpnprd01.prod.outlook.com (2603:1096:404:a::22) To TYAPR01MB5689.jpnprd01.prod.outlook.com (2603:1096:404:8053::7)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.11.2] (133.2.210.83) by TY2PR01CA0010.jpnprd01.prod.outlook.com (2603:1096:404:a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Tue, 12 Jan 2021 07:58:23 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: aa9d40f6-54ea-4a24-0dd3-08d8b6cfd661
X-MS-TrafficTypeDiagnostic: TYXPR01MB1759:
X-Microsoft-Antispam-PRVS: <TYXPR01MB1759F4FD4992B8010EFDEB5ACAAA0@TYXPR01MB1759.jpnprd01.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 5Bf4JYmckGuQNXEa7ArS6oof9U+HbS+g604LAWutPq126Z/DFxhXTTLnFvjVMmuhQq5DfgQ9RtdvSmhfyTFjfKhAjSS9MO5Xe4npk/n+Mo8sXuecVlI2k6COzsAG7tD4NaFXayPJ4BiyR6tOfv8lvCdpFeBAHZowGFrUPGv6tu2nHM3A6IttjXgPK6QXi89rUoc1z613QNHW9atR7SZ6JWvE0pfs9k/r8tDRtYD98JE707e5tssmPtzyYtkVSbWZC8+x3+PN9sWzE84vg1+fdJMA7yWiM0QW7qtZzetMHUqxsZBS7fSOPGvMziQ3EPH/LcnS5tDFoG9NDoDbeTXxR39bfqolQoIe+tSsSNLRo8HheIK74eZxQICp1MYwfKBaFpxPmA3Coz6x3aKQcbJJ4zabxMy3Vh/LCHHFEzVPGx6hQjWLYwYEV9Zw2X3m1YePTQL1Lk6vz0yWut4pN8wkUcat6IjXt4OBLPa5gd+pEBk=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYAPR01MB5689.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(39840400004)(136003)(376002)(396003)(478600001)(186003)(16526019)(956004)(83380400001)(8676002)(2906002)(31696002)(66574015)(66946007)(53546011)(66556008)(2616005)(16576012)(8936002)(31686004)(66476007)(86362001)(52116002)(786003)(26005)(5660300002)(36916002)(316002)(6486002)(110136005)(4326008)(45980500001)(43740500002); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: KhpNQnBc4SZCP4AI06bMbCg5tDeNt3GRF+yF4vL5Tx9bhy4okZz6Ysg7Myx7pSQoXkr9hEyOH2d+mJBe1L6TOpmBWdJp3cQXibBqh8j1MPCHPVTQf/uBhl0PYGhd0x2l8eGOhg7Q3n2NoKrGM4kxBvd3lbUyNbAwoOf1p1Jfx3iFLYKFjfkP0k7MrKqL4sXiHR4dSBabuDPgYWg04ul/hj73GrOisabPjWF6ov4Qf+BP4UFZu66KRmjNydrBBGZmOAF7IXH1/R9jefAN7Hw3GtgyN1PI+3tmDd1mbrhMj+QJh12L2jfAsaH0u0nOClGw0rokv+Dv2tXr9BaXLLfAkNoQWdVWCdmlREzedgWyaxk5Zm7lvITpOAXaOjxdNP8VakdHrSGLC3GyENBcU+wSjCUViDkIkmC+9jJD2NRZoVZ5UmrjmtQqHUN2w9YqE4S8F0BuFPQZl64MeR6YALl0SCpgCoDASFUuFLi+aa5XegDqRkl+89vaHODsXPg/lZspg/Ea7+v3Wy1eb79NYV2jFgsGf3Pv9H2M5JA8GFZAdSQmodx84d+nBc6fkED961A99Tiy29f8109DDpAQzksYB15e5H3ylwkfbnHxxyfIrKT69E82nyYdADk2zMSSNElmpcGo1J0PIQaXb8LjTV9RY7MsIrFBUejUd8TzMOqIMVW1YQKwRPMCSdJc51BMJEr/ZS1e3QaZmSHp4QxA8lWj67IfTNEqo1P4rkYsBjCl3X+6oIwWU+4YV7zTbXtP9fRg1NYMDs0gXa9v1cdEaDu+RcQvkrjpDAw6vzbwcRz5LT+TRlPu22UnEF2qXmJnowR8K2nlrdnxrMbn/fLyusIxGhcFR91NRlwDbAq9UJ1ZlV/BGlaeqJLM+g2n1e7HPLfUPC9QeUN/LvgIkjeykw5dQ1DIYMRTqsywr5lsItR35JMd2hXeI8SIe9751SFz/EWXzQZF3TGjBjILrjdccc34HD+yOEhlY7Az4+VSDvePO0bS4R/RwLh+YNyX368sQdVp
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-AuthSource: TYAPR01MB5689.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2021 07:58:24.3328 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: e02030e7-4d45-463e-a968-0290e738c18e
X-MS-Exchange-CrossTenant-Network-Message-Id: aa9d40f6-54ea-4a24-0dd3-08d8b6cfd661
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: wIo2Etl8N9jMf7regRpovrd6zYHgGe0JHPjhIMRaG+6RqlgV+Pv8lbTJ0ZWFUF8OahSLk43zfgq+t27qctfWug==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYXPR01MB1759
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/G6gEqWc4pZwEfnWWBllfuxTqCTk>
Subject: Re: [media-types] Media subtypes containing "+"
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Jan 2021 07:58:29 -0000

Late, and just for the record (see below):

On 28/12/2020 01:45, Manu Sporny wrote:
> On 12/24/20 3:26 AM, Martin J. Dürst wrote:
>> If I understand correctly, you would un-gzip it first, and only then
>> unzip it.
> 
> Yes... but remember you could have an application that's only really
> interested in un-gzip'ing and stopping there. That's a perfectly
> reasonable thing to do based on what ONE of the media subtypes is
> telling you. If all you can do as an application is ungzip... well,
> that's all you can do and the subtype makes that clear.
> 
>> In a slightly more realistic example, let's use svg+xml+gzip. Gzip is
>> more generic (because it can be applied to any kind of data) than
>> xml, and you definitely first have to un-gzip before feeding the
>> document into an XML parser.
>>
>> But you may be right that there are cases where the terminology
>> 'generic'/'specific' may not be adequate. foo+gzip+zip (foo gzipped
>> and then zipped) may make as much (or as little!) sense as
>> foo+zip+gzip,
> 
> Yes, agreed that "specific" is not adequate, because there are multiple
> "specific" identifiers that are valid, especially for the following use
> case:
> 
> application/did+ld+json
> 
> These are all valid subtypes: "json", "ld+json", "did+ld+json" resulting
> in these valid media type interpretations:
> 
> application/json
> application/ld+json
> application/did+ld+json
> 
> That's what we're trying to say... does that hold together?
> 
>> The problem with this approach may be that currently existing
>> implementations, as well as some future implementations, may just
>> look at the rightmost + and the following alphabetic characters.
>> Therefore, you need to make sure that people constructing/proposing
>> suffix combinations will choose the right order, and that means that
>> you have to have some language about suffix ordering anyway.
> 
> Ok, got it. Would adding language that explains the above (and the
> previous response to Murray) make sense?

Yes, I think such language is needed. Otherwise, some people may 
interpret it the other way round.

> We expect that many applications don't do this sort of thing today,
> rather either matching on the complete mime-type and doing processing,
> or not. We are just trying to be complete about the mental model of
> media subtypes and thought we were documenting something that was
> already more or less there... but perhaps not? In any case, does adding
> language about suffix ordering and how to interpret it address your
> concern, Martin?

Yes. It's not exactly my concern, as my and your mental models seem to 
be rather close, but others may not have the same model, so we need to 
be clear what the model is.

Regards,   Martin.