Re: [media-types] [IANA #1268782] application/prs.implied-structure registration request

Alexey Melnikov <alexey.melnikov@isode.com> Tue, 02 May 2023 12:41 UTC

Return-Path: <alexey.melnikov@isode.com>
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 C8CFBC1524BC for <media-types@ietfa.amsl.com>; Tue, 2 May 2023 05:41:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=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=isode.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 UjkihON-fb5v for <media-types@ietfa.amsl.com>; Tue, 2 May 2023 05:41:38 -0700 (PDT)
Received: from waldorf.isode.com (waldorf.isode.com [62.232.206.188]) by ietfa.amsl.com (Postfix) with ESMTP id DD344C151B1D for <media-types@ietf.org>; Tue, 2 May 2023 05:41:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1683031296; d=isode.com; s=june2016; i=@isode.com; bh=zBnF7RLQg7KDeZPLE99UgOBimryENJhGX+kELPoRSf8=; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: In-Reply-To:References:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description; b=ovdTmCfu1kRNhbV+nlJh80mrh9FfT+JYFV4U6keNfyY6yW7TyhmDSLKahszWUBoYxWD5W3 FesTlwsMTpQ4NMw3pTJxRATgNO4Cs272fMI0Bg5pnbr5iNRxWUzDaBjWAMk1susfThd+1y CFeJU+tsKshVjHM9Cs1w1HkZbwuF44k=;
Received: from [192.168.1.222] (host31-49-219-112.range31-49.btcentralplus.com [31.49.219.112]) by waldorf.isode.com (submission channel) via TCP with ESMTPSA id <ZFEFABBhhAto@waldorf.isode.com>; Tue, 2 May 2023 13:41:36 +0100
Message-ID: <9a1ae438-07eb-aefb-039f-54984cff61d8@isode.com>
Date: Tue, 02 May 2023 13:41:14 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0
To: iana-mime-comment@iana.org
Cc: media-types@ietf.org
References: <RT-Ticket-1268782@icann.org> <3pbq7mgjcw-1@ppa2.lax.icann.org> <rt-5.0.3-3954030-1679094799-1285.1268782-9-0@icann.org>
From: Alexey Melnikov <alexey.melnikov@isode.com>
In-Reply-To: <rt-5.0.3-3954030-1679094799-1285.1268782-9-0@icann.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/cU5F_cldZOnIIhJ6_IaL87qbIWw>
Subject: Re: [media-types] [IANA #1268782] application/prs.implied-structure registration request
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: Tue, 02 May 2023 12:41:41 -0000

Hi Amanda,

Please apologize from me to the requestor for dropping the ball on this 
and 2 other registrations. It arrived just at the wrong time: before the 
last IETF meeting.


In regards to this specific registration: I am a bit doubtful about 
usability of this media type, because some entity will need to figure 
out what the signature is. And many applications that select media types 
based on signatures already know the media type that corresponds to such 
signatures.

The signature parameter values are limited to ASCII, which is 7bit. So 
this further limits usability of this media type.

Having said that, the media type registration has necessary warnings 
about its use and it is in the personal namespace, which lowers the bar 
on requirements. So this registration is approved.


Best Regards,

Alexey

On 17/03/2023 23:13, Amanda Baber via RT wrote:
> Hi Alexey,
>
> This is the first of three registration requests from this applicant. Can you review these by the 31st?
>
> thanks,
> Amanda
>
> =====
>
> Name: Marek Čermák
>
> Email: cermmarek@gmail.com
>
> Media type name: application
>
> Media subtype name: prs.implied-structure
>
> Required parameters: signature: A non-empty case-sensitive sequence of arbitrary ASCII characters located at "offset" in the file.
>
> Optional parameters: offset: A decimal-encoded integer that specifies where the "signature" appears in the file. If not present, it MUST be treated as 0. Negative values identify offsets from the end of the file, such as -1 for the position of the last byte, -2 for second to last, and so forth.
>
> Encoding considerations: binary
>
> Security considerations: The content of the media type is completely arbitrary with the exception of the presence of "signature" at "offset". Therefore, any such file may contain executable or active content or code, and the file itself may be executable if "signature" is a sequence commonly used for executable files. When processing this type, applications MUST ensure that the structure of the file matches "signature" and "offset", and if they intend to assign a more concrete media type to the file, they SHOULD verify that it is valid. Applications MUST NOT open files coming from untrusted sources if it could lead to arbitrary code execution.
>
> Interoperability considerations: Applications that accept or produce this type should not be assumed to have knowledge of more than the signature. It is not guaranteed that an application offering this type will produce a file in a format that is most commonly associated with the signature, and it is not guaranteed that an application accepting this type will be able to process it any of the formats associated with the signature.
>
> Published specification: N/A
>
> Applications which use this media: This media type is intended for applications that have to guess the media type of a file, but do not contain heuristics that allow to pick a more concrete media type with acceptable confidence.
>
> Fragment identifier considerations: N/A
>
> Restrictions on usage: N/A
>
> Provisional registration? (standards tree only): No
>
> Additional information:
>
> 1. Deprecated alias names for this type: N/A
> 2. Magic number(s): As indicated by "signature"
> 3. File extension(s): N/A
> 4. Macintosh file type code: N/A
> 5. Object Identifiers: N/A
>
> General Comments: This media type identifies a meta-format that encompasses all formats which require "signature" at "offset". It it intended for use in applications that describe files using media types, but do not have sufficient heuristics to output a more specific media type. In such a case, an arbitrary number of printable ASCII characters can be taken from the beginning of the file and stored in the "signature" parameter.
>
> Examples:
> application/prs.implied-structure;signature=GIF87a - Any file starting with "GIF87a", such the 1987 version of GIF.
> application/prs.implied-structure;signature=ID3;offset=-128 - Any file having "ID3" at position 128 from the end, such as files storing ID3v1 metadata.
>
> Person to contact for further information:
>
> 1. Name: Marek Čermák
> 2. Email: cermmarek@gmail.com
>
> Intended usage: LIMITED USE
>
> It is not recommended to use this media type when a more concrete type is known. Its use beyond automated archival, content negotiation and other purposes in general file hosting is limited. Applications should not advocate themselves as accepting this media type if they require more specific structure or format.
>
> Author/Change controller: Marek Čermák <cermmarek@gmail.com>