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

Harald Alvestrand <harald@alvestrand.no> Mon, 01 August 2022 12:44 UTC

Return-Path: <harald@alvestrand.no>
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 E0447C15C50B for <media-types@ietfa.amsl.com>; Mon, 1 Aug 2022 05:44:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.118
X-Spam-Level:
X-Spam-Status: No, score=-1.118 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
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 UA3eSz-39ScP for <media-types@ietfa.amsl.com>; Mon, 1 Aug 2022 05:44:11 -0700 (PDT)
Received: from smtp.alvestrand.no (unknown [IPv6:2a01:4f9:c010:a44b::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0C511C15BEC6 for <media-types@ietf.org>; Mon, 1 Aug 2022 05:44:10 -0700 (PDT)
Received: from [192.168.3.110] (unknown [78.156.11.215]) by smtp.alvestrand.no (Postfix) with ESMTPSA id 84B244993D for <media-types@ietf.org>; Mon, 1 Aug 2022 14:44:08 +0200 (CEST)
Message-ID: <77810189-b144-2cd6-9f6b-c84de4f2fd55@alvestrand.no>
Date: Mon, 01 Aug 2022 14:44:07 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
Content-Language: en-US
To: media-types@ietf.org
References: <CAMm+Lwh1vAC4HKmKbnHdb0dT-b0yZMAWwURiX5S7beJEg6F2iQ@mail.gmail.com> <ac6c135b-6e1a-8ab8-fe29-2f0abd79b624@it.aoyama.ac.jp>
From: Harald Alvestrand <harald@alvestrand.no>
In-Reply-To: <ac6c135b-6e1a-8ab8-fe29-2f0abd79b624@it.aoyama.ac.jp>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/_znH7p92ufikZCxVPR_ir2b1wVA>
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, 01 Aug 2022 12:44:15 -0000

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").




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