Re: [media-types] New toplevel type - extension

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Mon, 31 October 2022 05:05 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 15F1BC14F733 for <media-types@ietfa.amsl.com>; Sun, 30 Oct 2022 22:05:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 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_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 bAZBVaG-275q for <media-types@ietfa.amsl.com>; Sun, 30 Oct 2022 22:05:26 -0700 (PDT)
Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01on2109.outbound.protection.outlook.com [40.107.114.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 50F9DC14F73A for <media-types@ietf.org>; Sun, 30 Oct 2022 22:05:25 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QAuPZrkaBcMqn5qlzvPu3nzm5MnyR4QoaeS2TaM3IJa+xlfQuPtxToARoPghKf+FE8ioKrxCUsy6HZxEBlNxP0FrZC3he81ukQZWA9ENeuipfFai2k7HLi1raaLI5aVJxyDxBUTHQMS1LXuiNX0IkP4hVcfN4DDa7i+q/0VOQEULhTklvcoD/YuwRpKXwigajFRkL+n9IxJ+lnJ0bb9q4BnLnJ28t2ZoYjuhY0npOplx7n1ITEheTx/0UJYDGLwZPcH+N4kVwuyphsWP5YlEqNiUI/LfO3q7iPch5xY1XupNj9OhMIr+dhB/uMl6zW8JMbX0MsMwIggHTeYxA1Mf4A==
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=x6MfC7pC/NZbVZDrXRYj0jcExkUwTLRF1GCkn1p0myY=; b=UeHrJsqp99QNS1H36EcYycOO/mx88NQmnxUtrkiD7GxVDDUfM/Nrjs9JROTghiD9kOXxbm6mMxskpQrSlVFvNqT31dpj7Qf0+iMVwWKvPHaA11DrKZYsIoCEpiYxs6eUu7x8dTQwJjFV9YVpFRfMDTmo8o/BbjT3AJ6GBQ6y/9Lfi2BXZHCYNkY34pUl0ZcTydI7E9YLUO7GpY+6h6p9LcZ4nmEE9qe2B45DYIbrGD+4pvEx96DbglSPW9pP7ntcoLp6w6bWPNzZP7r2bMzpBZq9vN8ZPu42v0nxH03ptwe4hHDjLxzPWlsQt2D4uXUhMaV87KJMU1AkaHMTX0wwNw==
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=x6MfC7pC/NZbVZDrXRYj0jcExkUwTLRF1GCkn1p0myY=; b=H6GH4GmRFkz5bEFc7knydRGAgT/iNzcsfo9f4ljItbcou/uRtMMMnr/m2jqympmwwv/e3BEiQ3f5uTDduH/8vw5mxoBB1ZQHN+k5+VCjiQ3kceGWZ8ERBJoMB+LtxVFKqXeWjkOQOONLlqN37uFAdyVPj6PO3SK9b/9c5+113z0=
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 OS3PR01MB10390.jpnprd01.prod.outlook.com (2603:1096:604:1fb::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.23; Mon, 31 Oct 2022 05:05:21 +0000
Received: from TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::65d4:707a:fa87:a4c7]) by TYAPR01MB5689.jpnprd01.prod.outlook.com ([fe80::65d4:707a:fa87:a4c7%7]) with mapi id 15.20.5769.019; Mon, 31 Oct 2022 05:05:21 +0000
Message-ID: <3081994c-d0d5-9feb-388e-585f7519adc6@it.aoyama.ac.jp>
Date: Mon, 31 Oct 2022 14:05:19 +0900
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0
Content-Language: en-US
To: Harald Alvestrand <harald@alvestrand.no>, media-types@ietf.org, "Donald E. Eastlake 3rd" <d3e3e3@gmail.com>
References: <CAMm+Lwh1vAC4HKmKbnHdb0dT-b0yZMAWwURiX5S7beJEg6F2iQ@mail.gmail.com> <ac6c135b-6e1a-8ab8-fe29-2f0abd79b624@it.aoyama.ac.jp> <77810189-b144-2cd6-9f6b-c84de4f2fd55@alvestrand.no>
From: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
In-Reply-To: <77810189-b144-2cd6-9f6b-c84de4f2fd55@alvestrand.no>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: TYXPR01CA0054.jpnprd01.prod.outlook.com (2603:1096:403:a::24) To TYAPR01MB5689.jpnprd01.prod.outlook.com (2603:1096:404:8053::7)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: TYAPR01MB5689:EE_|OS3PR01MB10390:EE_
X-MS-Office365-Filtering-Correlation-Id: ead56383-07a5-4ad6-6488-08dabafd82f2
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 7r3ir5/IxbX8hxXAcxgY8XNlAKc2RMgzh6jb8rJW3A0ZWC03w4kJ//8QRLSTKusHwjcjGutTogIKxGY0/YxOann88YJB8rdnf12C1ZeqH8Zp1FTEDuW3E5R2YRap/12Y3T1hUH2LMWeHtz8A5c6ZNnQeT30mE3hDaCuCuz56I8XBh5ULfn35emV92IRsq8tF8xquEsWxS0FD6ylbEqx5vX94xJ1fR3G8N0HSdS+ua4Mr6AqeniUnJOUJESWA514pPxfI+NLeELcGI6fb+0mJwUGr1pHeroGGNEayaBQfK4DqurbvYCXAlMh39VGt9JLP1fhKStRyobJLEjo40WcMveapm+ACLN284ab9NYsgprn1CUdvvqAZIbISQO9t+6GsmM9MR3vFdFTZ4Qi4GtTkWEHQ+O4/pDiCP30BYpLeS/MY8bK8eb8Rt0vYBYAYjnIENVOGNWRMCxQU3SAwbo99v//U9Yz4WAeSkxCYsBImkq2qhMBo8vRR1acfncVWlpHr8CartaeM622zpja+XA+dDYLr7xFSTNciog8+hYBlmHZTvWakmdUxspghOHeXraf3wzTqLVY0lbQcnXIYO8jLVnRpUpKv4PEpeWjrJQpn42FcBl8XeKmr2FoZ4qe/liQAxozKiAZdn2qw9w6TiwRo2HmNJ/pud5cUYDHvByWTsTqEdDG+SZzlsGMSOuXXQ9tr+o9rY63W+oqDBNjb9rFsLL0uOm9eSTGXmVPSz3+Azlk+RUkkn8irhxc2h/D0T15sEyQDwm2JgSUmyOXnmc6iFwCnv2iA+jrLJkJdpkwmQD9KyapUdGD3JgCCQ9AfwpJzg90EWtfBSU0b04WjQbeY9glPDqYp7zbAUa+gbXdWjkQ=
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:(13230022)(39840400004)(136003)(346002)(366004)(396003)(376002)(451199015)(38350700002)(38100700002)(478600001)(110136005)(86362001)(31696002)(786003)(316002)(36916002)(6506007)(53546011)(52116002)(41320700001)(66946007)(66556008)(66476007)(8676002)(8936002)(83380400001)(31686004)(66574015)(5660300002)(186003)(2616005)(2906002)(26005)(6486002)(6512007)(966005)(41300700001)(43740500002)(45980500001); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: 2Vgk80aGjPcw0IlYym23JEEN2Ih8+zN/tjy3RvHhGvANKan2l5IGdzA6+r3mCVnWs9V0HY5cI3hefIV7eArQLkC5Hz8FDOVN+lD5flI6QQJ+kmZ4dat0FrnaazfvYJvVqp8w8Gsgde2whxfKeV//pQg64Z6zDPpfevubR7o3A7yW3ifvEcwaN6HXjjb3cpuw3pfb+D7rpHE/GKBNPHKUlMKSspCgpVnHj34LTGeegJDO6zHCi8r5tES1kRCDbW8b2GHY+1E5ukP7U43QJVNOASCIIctdIxr4qyjkZh16eQ8UET8Qbb3y8AQRrseMdF9RfXpFq+4QOw4VAkmFAAHWEs2vclqj88oLxZ6CCu1lhBjnQI5t5w3xIkurpshsVrwyFWHO9D8e9qoq2YO0zjeNS2vEWkhDXSPsNsGO9gzLlQW9InXj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k9TW1iYJunZv9Up6msfLrmr4yWTqgF0149iX5s2YHmaLHrbqlCE4ETVYEUM0zdkOwXpqUmXRZ/1UkVS+5uGdIb97PdxjoUGucydiOi
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: ead56383-07a5-4ad6-6488-08dabafd82f2
X-MS-Exchange-CrossTenant-AuthSource: TYAPR01MB5689.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Oct 2022 05:05:21.4636 (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: LsxBglsw1Id3M5z1q9HKAAqihkbiluCQo1vxt5QJG5gFKwYhCXxG7gOMshdhAKCamWxV8KN80372d3o/mb6dcw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3PR01MB10390
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/twxB0G07hkuotxECZIJLKW5tQQY>
Subject: Re: [media-types] New toplevel type - extension
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: Mon, 31 Oct 2022 05:05:31 -0000

Hello Harald, others,

On 2022-08-01 21:44, Harald Alvestrand wrote:
> extension/string-under-someone-elses-control seems to me as close as we 
> can get to something that top level types should NOT be used for, I think.
> 
> As such, it should inform the top-level draft as needing to state a 
> principle that makes it clear that it's not an appropriate usage.
> 
> application/octet-string; filename=foo.dcat conveys all the information 
> one has about such an object (application-octet-stream is a long-winded 
> say of saying "I have no idea what this is").

I have added a paragraph about this topic to the subsection about 
negative criteria. I wrote this to also include ideas such as
https://datatracker.ietf.org/doc/html/draft-eastlake-cturi-07#section-3.1, 
which fortunately does not use a top-level type, but only a subtype 
prefix. As a result, it proposes to map http://example.com/tag42 to 
application/uri.http%3A%2F%2Fexample.com%2Ftag42. The problem with that 
is that I don't think there's any mechanism to reserve the prefix "uri." 
under application.
Something like application/uri-mapping; uri=http://example.com/tag42 
(with escapings according to context) seems quite a bit more appropriate.

While I have added the necessary text, I haven't added any references 
because I don't want to explicitly point to stuff that we consider 
non-appropriate. Please tell me if you want references.

[The alternative would be to define a single top-level type "mapping" 
with subtypes such as mapping/extension, mapping/uri,... each with a 
parameter that contains the mapped data. But I'm not sure we want to go 
there.]

Regards,   Martin.

> On 6/17/22 08:17, Martin J. Dürst wrote:
>> On 2022-06-11 01:21, Phillip Hallam-Baker wrote:
>>> I am not going to defend the aesthetics of this proposal. But it 
>>> definitely
>>> has utility.
>>>
>>> The proposal is for a new toplevel type extension where the subtype 
>>> is the
>>> file extension used to announce the type to the operating system.
>>>
>>> Yes, I know it is ugly.
>>
>> Graham's proposal for application/extension.foobar looks just a little 
>> bit less ugly to me.
>>
>>> But it would be damned useful when writing an
>>> archiving tool. At the moment, I have to record both the original file
>>> extension and the inferred media type. And this results in a whole 
>>> rack of
>>> ambiguity and mess because having two ways to describe the same thing
>>> inevitably results in ambiguity.
>>
>> I understand the problems you get with the ambiguity, but what about 
>> just leaving the media type blank? With your extension, you don't 
>> really provide information, you just duplicate it.
>>
>>
>>> Consider the case that Alice saves her html document out to a DARE 
>>> archive
>>> from a html editor. In this case the content is definitely text/html.
>>>
>>> But what happens when Alice zips a set of files on disk and the archive
>>> tool infers the content types? Well obviously file.html is almost 
>>> certainly
>>> html but that is an inference and when the archive tool guesses the 
>>> type of
>>> less well known file types it can easily get it wrong.
>>
>> Yes. In that case, the archive tool should just not guess anything.
>>
>>
>>> So in the spirit of 'describe exactly what you know', extension/dcat 
>>> seems
>>> to be the way forward for when my archive tool detects a file of 
>>> extension
>>> .dcat.
>>
>> Well, when your archiving tool detects a file with extension .dcat, it 
>> can just note this extension as part of the file name, because it's 
>> all it knows. The media type can just stay empty.
>>
>>
>> Regards,   Martin.
>>
>>>
>>> Thoughts?
>>>
>>> [The use case that brought this up is that I threw together a little Web
>>> browser that can surf a Web site published as a set of static encrypted
>>> files. So all the content is encrypted end to end.
>>>
>>> If a threshold encryption scheme is used, the administrator of the group
>>> can add and remove decryption rights from users without changing the
>>> encrypted content or compromising the end-to-end encryption.
>>>
>>> One consequence of this approach is that the media type to be 
>>> reported to
>>> the browser is only known after the browser attempts decryption. If 
>>> Alice
>>> attempts to read a file encrypted to a group she has not been read into,
>>> she will see a HTML warning page telling her she is not allowed access.
>>>
>>> Oh and my very ad hoc usability study strongly suggests that when a 
>>> user is
>>> surfing the Web and suddenly hits an Orange Page shouting TOP SECRET 
>>> they
>>> do actually take notice. But even if they don't the data is still
>>> encrypted.]
>>>
>>>
>>> _______________________________________________
>>> media-types mailing list
>>> media-types@ietf.org
>>> https://www.ietf.org/mailman/listinfo/media-types
>>
>> _______________________________________________
>> media-types mailing list
>> media-types@ietf.org
>> https://www.ietf.org/mailman/listinfo/media-types
> 
> _______________________________________________
> media-types mailing list
> media-types@ietf.org
> https://www.ietf.org/mailman/listinfo/media-types

-- 
Prof. Dr.sc. Martin J. Dürst
Department of Intelligent Information Technology
College of Science and Engineering
Aoyama Gakuin University
Fuchinobe 5-1-10, Chuo-ku, Sagamihara
252-5258 Japan