Re: [media-types] IETF Multiple Suffixes Interim?

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Fri, 19 May 2023 09:14 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 1C0D1C15153E for <media-types@ietfa.amsl.com>; Fri, 19 May 2023 02:14:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id APZtGsmvYDto for <media-types@ietfa.amsl.com>; Fri, 19 May 2023 02:14:07 -0700 (PDT)
Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on20712.outbound.protection.outlook.com [IPv6:2a01:111:f403:7010::712]) (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 BCD14C151535 for <media-types@ietf.org>; Fri, 19 May 2023 02:14:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AE2WzpIuxPNISICAyIT2uMOs8SxbK7ew+OjlFX2BzalMMQkM0V7IsTgDdCNLYN7Dte+QRko+cK9cKBFn132/M9PMqfj+rvZHozCL/165DMm4YAsqSEnZ007c+b1pOvAYf69SGnxlDoddwcEWnJJF0vSPWm7rM3PC6NUc9Uu3bOJCpixHABqxDAbZTtzqQAayWkkPzzIvFHD0J1VWkTW7ZtIDQXu/7ngjOZY1/zoR9uB/r7xZBlMJjaw3HBhLuGsr/Pzywm7ohfoXQXb1HsmbnIJSh4ztpNI66PFJQSl0MuA7erjO0K6epguOANAh/+R3/PoqrFgb09WYvkODS7TXCQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=byDBmQjRsv/PQUtSdDaGUH7pV1LhQDknXXL+TYvc7Ms=; b=oFVyAqb0SWETE6WnTGltKepyAPkhKdAt2FS+8PWhWMe9xzeI/3HPpJI4cdtXGet+pMn7G24lyRCEIWgB/uAJaYOSxFDifRVfPWL0o0Yx8r961AlULGNBMv9xejUiHed2lrTLRHB/dD1kdzR66E8PBgdgpXMxIIpEeW5OlrgCMvNMAKzcwejHvwpuIqVeMs8z/JugkulY/5kq4sGVorswR8yiQNVI6S5YOyczkocOdTe8txnajBSnS5S4ltO+fvVcWt3zGCOMQHeER6JRB2rp7hxu9w0CVIQaoyj8O+uLXdvupTigx8mUm/Sp8nwZCrkvQdgUVwfKO93BqkmmsPVezw==
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=byDBmQjRsv/PQUtSdDaGUH7pV1LhQDknXXL+TYvc7Ms=; b=AycT4Knp9TgBybxq+JUJ2ki2gH3oiyFBRQkTNHFq7Ouoo1XlXrkN/ChYw3ai5Ae7bwbOmGpaaHPoA7wQyDiXvf+tPTvh6Hpx9Usl+zSP/TgV+7Vx6/BH/IwUEpadMjrKs+AVqMOQGcqyisNzyMb243+atZSsJ3H4CHbKgnWCZgA=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=it.aoyama.ac.jp;
Received: from TYAPR01MB5689.jpnprd01.prod.outlook.com (2603:1096:404:8053::7) by OSYPR01MB5544.jpnprd01.prod.outlook.com (2603:1096:604:91::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.21; Fri, 19 May 2023 09:14:01 +0000
Received: from TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::29a4:16ca:2bec:36d1]) by TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::29a4:16ca:2bec:36d1%7]) with mapi id 15.20.6411.021; Fri, 19 May 2023 09:14:00 +0000
Message-ID: <3cf7bc44-3bdc-4018-579e-ed28607b08e1@it.aoyama.ac.jp>
Date: Fri, 19 May 2023 18:13:59 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1
Content-Language: en-US
To: Orie Steele <orie@transmute.industries>, W3C VC Working Group <public-vc-wg@w3.org>, "W3C Credentials CG (Public List)" <public-credentials@w3.org>, media-types@ietf.org
Cc: Manu Sporny <msporny@digitalbazaar.com>, Ted Thibodeau <tthibodeau@openlinksw.com>
References: <CAN8C-_LypYAjbAHyY_EeO_WhPEszRTXNy4P=t3ORo8BNVgjkPA@mail.gmail.com>
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
In-Reply-To: <CAN8C-_LypYAjbAHyY_EeO_WhPEszRTXNy4P=t3ORo8BNVgjkPA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: TYCP286CA0272.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3c9::18) To TYAPR01MB5689.jpnprd01.prod.outlook.com (2603:1096:404:8053::7)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: TYAPR01MB5689:EE_|OSYPR01MB5544:EE_
X-MS-Office365-Filtering-Correlation-Id: b3db6838-d5ee-4ed1-4164-08db58496228
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: nGfv5eil3UCZbr2CE3q/e2LDn3FyQgGctTGhZZYOWsZ8ek3qO3zNMZu6kmwkla9T0P7VxIalu+TNZt+tNXdTOgiC5KgPxAqxj+G+EjwGwUA1bBrWYUz/epMiw/4DwnG1cGhW8CyZVroqPCZsOBpf7u2+MoaVaFoThFko7fS+DdQezCLWdYszGj+I5bJgQ1dE7KeZpZh4YSVwd476IXiXWtgo8z6s7l9+s1T9ZOF+ZhjPlI2wKD8pTb7Mfw/HaaKvg1f7UmtM21cWQ+ssYjzZLGCxhCi8ek41NWabHxIxD0/vUYHAQMFyvjqscQY8YsmblEFCUoXjJOX8F+ApvKWNtgmiOvBJKAf1DiLi28ansVrrXJxs7WFoSdaB4IgZ4q1mr6mynlqkkJIZSiitm0JKd41KVC/zh9jjGt9+1dHPfRvGyUsrWVIiY+hiV7esKh39ISpvxRdWdP/TFO0IALRF2atJD2hkEqSar1M+5s/TsEgWbU2NKFLyo/n9K8bz+u4Azr+5BxjwgBBXROPoUcO/qJzPv0TNZ/G5McytocT2CIiTFvsW+Na54PV2nlqRLxcGGemSUOSJX2RzIyaCTtoEgIY6XrCJCAjb/9gpkg0PE5uI3caqaS5ljDLA3WR1dYIaPyTSit4sMsdBkEDud5ErkBJBG7OnFtPpUtpS9J0m1Zk=
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:(13230028)(396003)(136003)(39850400004)(346002)(376002)(366004)(451199021)(86362001)(31696002)(41320700001)(8936002)(26005)(8676002)(5660300002)(6506007)(6512007)(53546011)(2616005)(186003)(316002)(786003)(54906003)(66946007)(110136005)(6486002)(66556008)(966005)(52116002)(36916002)(41300700001)(66476007)(4326008)(478600001)(38100700002)(38350700002)(66574015)(83380400001)(2906002)(31686004)(43740500002)(45980500001); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: 9hBJLmrWcz7Rh/zt82t4Rff3ibmwk6eLjbsi6hTS6dGjAdrDYBfGoBU/qheL5INJ//wJUyO8cFGcL0q1E+Wv0GNJfe5spPweeHfu7E6pbq17SnQeuFHlkMLEksSyjTyIsyZBR4Wr6wJ2wzcC1kp9SMST5KVo1F+Tx5SE64aCr2QFe8tMfOFQuph9RkkYFLgv0r3OR+B1t53eFnDzt6IVLqywiAexKNESysy6WDaV0BbiLOxzYb0v7Rpuj5nKcogfHPMQYljjUzlJHoacWbht4nIgU9E3ZTSbRWDB6MPF9AdqFOORGfZrIF9u6sZbDh2ksE2u6hZpvDYK7EoKyTEDwKE+OvnjkSO7ugXs9bIqiE1Ytvvmdx+zKn7CWI9/AHbjgtpJeWsmEwNJg7/OzXBPPlIQt3IuR0RvHzuc+OM7d8Iv9Ibh6ipt+wlygbD84wvS3i2zl+eEd2yk4TqJlZBWaejOaEX7nh3AJM2Od85/6BCa1a7KqyjR3RAfDGDAF/E9OcLSf5qp3dJrUEzMwsh9fwvm1Tw2QiGiFPb1UEecM31PH0//AihgaLXMEqnqYNJ7vfa4YO6IYAQptVawMKmovfHcQ31pnjyRqgO2dd7/PtB1l7/38CJ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ossTenant-AuthSource: TYAPR01MB5689.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2023 09:14:00.8684 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: e02030e7-4d45-463e-a968-0290e738c18e
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: k1TYQjE6lQtFIhexjZV3jKNd4Do84ftqo8w6O/EmESWwluLMq6tr1Vpu2KyR4WdG9l2wbU5mGnGIMoMKT5Ur0w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSYPR01MB5544
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/hZ94SU8QUiprJGv0OF71NPNTxUM>
Subject: Re: [media-types] IETF Multiple Suffixes Interim?
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 19 May 2023 09:14:11 -0000

I'm sorry if this has come up (and for some good reason rejected) 
before, but I think media types are first and foremost descriptions of 
content formats, not instructions for processing. So it would be good if 
that would also apply to suffixes.

Also, my understanding is that in practice, machinery in an OS or 
application (such as a web browser or email MUA) does mappings to 
applications based on the whole of the media type. Using only a suffix 
(or more than one suffix) is the exception.

Therefore, we shouldn't say that e.g. application/did+ld+json is 
processed in a pipeline as
    application/json -> application/ld+json -> application/did+ld+json
but we should say that application/did+ld+json can also be processed as
+json or +ld+json, in particular if there is no more specific 
application available, or some more general processing is desirable. If 
an application that can handle application/did+ld+json is registered, 
then we really shouldn't care about what that application does 
internally. It may indeed call a generic JSON parser, or it may do some 
strange voodoo with regular expressions to extract the information it 
needs for its purposes; we shouldn't have to care.

As for cases such as image/xml, which have the problem that they don't 
exist: I think it's better to say that suffixes such as +xml and +gzip 
and so on are essentially independent of top level types, in that they 
speak about the "how" of encoding, whereas the top level types speak 
about the "what".

It's very fine to say, in the registration of +xml, that this can be 
treated in the same way as application/xml if no more specific 
application for the whole type/subtype combination (e.g. image/svg+xml) 
is available. But that's just a shortcut to saying "treat something with 
suffix "+xml" as generic XML if you cannot (or don't want to) do 
better". Although I can't currently come up with a +suffix that doesn't 
have at least one corresponding generic type/subtype (XML has two, 
there's also text/xml), there's no need to exclude such a possibility.

Regards,   Martin.

On 2023-05-18 00:02, Orie Steele wrote:
> Given the verifiable credentials core data model requests the registration
> of a new media type that uses 2 plus signs:
> 
> https://w3c.github.io/vc-data-model/#media-type
> 
> ... and the multiple suffixes draft is still not an RFC:
> 
> https://github.com/ietf-wg-mediaman/suffixes
> 
> Perhaps we might request an interim meeting from IETF to discuss changes to
> the suffixes draft and ensure that W3C does not publish another TR with
> unregistrable media types?
> 
> There are a few ideas floating around on how to complete the work, which I
> will summarize but hopefully @Manu Sporny <msporny@digitalbazaar.com> and @Ted
> Thibodeau <tthibodeau@openlinksw.com> can add their thoughts.
> 
> 1. Get consensus on processing rules.
> 
> Is there agreement that processing for the following examples looks like
> this:
> 
> In general:
> 
> type/subtype+suffix1+suffix2 yields an attempted processing pipeline:
> 
> type/suffix2 -> type/suffix1 -> type/subtype
> 
> 1.0 application/did+ld+json
> 
> application/json -> application/ld+json -> application/did+ld+json
> 
> 1.1 image/svg+xml+gzip
> 
> image/gzip -> image/xml+gzip -> image/svg+xml+gzip
> 
> 2. Are there more cases like image/xml that we should be considering?
> 
> Here is the list to review:
> 
> - https://www.rfc-editor.org/rfc/rfc6838
> - https://www.iana.org/assignments/media-types/media-types.xhtml
> -
> https://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml
> 
> Are we ok saying "processing errors are expected, for cases like image/xml"
> in the same way they would be expected for cases like:
> 
> image/svg+xml  profile="https://www.w3.org/ns/activitystreams"
> 
> - See for example: https://www.w3.org/TR/activitystreams-core/#media-type
> 
>     https://www.iana.org/assignments/media-types/application/ld+json
> 
>     Media types MAY elect to use one or more media type parameters, or
>     some parameters may be automatically made available to the media type
>     by virtue of being a subtype of a content type that defines a set of
>     parameters applicable to any of its subtypes.  In either case, the
>     names, values, and meanings of any parameters MUST be fully specified
>     when a media type is registered in the standards tree, and SHOULD be
>     specified as completely as possible when media types are registered
>     in the vendor or personal trees.
> 
> - https://www.rfc-editor.org/rfc/rfc6838#section-4.3
> 
> It seems like a poor combination of plus signs will yield errors in very
> similar ways that a poor choice of media type parameters will yield errors
> ...
> ... that is to say, the behavior will be unexpected, unless
> explicitly specified when the media type is registered, as "profile" was
> for ld+json.
> 
> This partially kicks the responsibility back to the entity doing the
> registration to explain themselves,
> instead of trying to reverse engineer an algorithm that will gain consensus
> for all media types and suffixes registered to date.
> 
> In general the guidance should be: No, don't add multiple plus signs,
> unless you have met a high bar, similar to how ld+json has paragraphs of
> text explaining "profile".
> 
> For example, the W3 VCWG has resolved that vc+ld+json is compacted... so I
> assume we do not need to use profile="http://www.w3.org/ns/json-ld#compacted
> "
> 
> And yet our requested registration of "vc+ld+json" will need to spell this
> out to avoid confusion... In a similar way, it will need to spell out
> processing of multiple suffixes.
> 
> Regards,
> 
> OS