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

Carsten Bormann <cabo@tzi.org> Wed, 03 February 2021 01:06 UTC

Return-Path: <cabo@tzi.org>
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 E3F5B3A1191 for <media-types@ietfa.amsl.com>; Tue, 2 Feb 2021 17:06:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 pg5ZspIiWSuH for <media-types@ietfa.amsl.com>; Tue, 2 Feb 2021 17:06:56 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B4F03A1153 for <media-types@ietf.org>; Tue, 2 Feb 2021 17:06:55 -0800 (PST)
Received: from [192.168.217.152] (p5089a828.dip0.t-ipconnect.de [80.137.168.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4DVk6P4BmvzySQ; Wed, 3 Feb 2021 02:06:53 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <F8727219-D3AA-411D-AC8A-45BF93E1AFA8@mnot.net>
Date: Wed, 03 Feb 2021 02:06:53 +0100
Cc: "Murray S. Kucherawy" <superuser@gmail.com>, media-types@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <EBDFC059-DD77-4A70-83A9-CBC51E1BE107@tzi.org>
References: <CAL0qLwZGum3X3SGH8EQGdH+cZuOjSsEyQad1Tk3Q=HyuthXvvQ@mail.gmail.com> <6E14C19A-AD5B-491F-90A0-218553CAD235@mnot.net> <DC0EB4DA-D45B-423C-8D37-04E854176D9B@tzi.org> <F8727219-D3AA-411D-AC8A-45BF93E1AFA8@mnot.net>
To: Mark Nottingham <mnot@mnot.net>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/ChjfwwS1UzI8ftNsqFUYxLRVvqE>
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: Wed, 03 Feb 2021 01:07:06 -0000

> Your argument seems to boil down to "it doesn't bother anyone, why not?"

Indeed.
But it seems to bother you, so let’s find out why.

> If you can't articulate the actual utility brought by the proposed feature, alarm bells are ringing.

It is not a feature, it is a convention.

> While what you say above may be true, adding new features to the architecture is not zero cost; people have to take on the cognitive load to understand the new feature, and given that it's poorly articulated, it's likely that will be non-trivial. 

I’m sure that there always will be enough people on this list that understand the convention that people registering new media types don’t have to.
People implementing media types named after this convention don’t need to understand it either — all the information about the media type is in its registration.
The convention just helps remembering the media type name, and, if you are so inclined, possibly helps in streamlining an implementation that needs to handle multiple media types of the same structure syntax suffix.

> Furthermore, implementations will need to know how

Actually, they don’t. 
You don’t “implement” structured syntax suffixes — you implement media types that have been named with this convention in mind.

> to handle ordering of suffixes; is application/foo+ld+xml the same as application/foo+xml+ld, or different?

I don’t think so, but most likely only one of those will be registered, so the question does not come up for an implementer.
If both are registered (unlikely, as the latter doesn’t seem to make sense), I would insist on text explaining the difference (whether structured syntax suffixes are used in their naming or not).

> If someone registers one of them, can I still register the other?

Sure, if you use the convention in the right way (as I said, unlikely in the specific case).

> Are there different forms of comparison, as there is for URIs? Does the chain of suffixes imply a processing model? Can someone who defines a suffix use it to imply a processing model?

All defined by the media type.
Again, media types don’t spring into life magically by defining structured syntax suffixes; a registration still has to use one for it to have an effect on the real world.


So I truly believe this is a zero-cost convention for those who don’t care about it.

Grüße, Carsten


PS.: We spent considerable amounts of time grappling with making the structured syntax suffix convention work for the names of all media types when SenML (RFC 8428) was defined.
We even wrote an (abortive) draft, https://datatracker.ietf.org/doc/draft-shelby-exi-registration/.
Find the odd one in what came out as RFC 8428:

   5.  JSON Representation (application/senml+json)  . . . . . . . .  13
   6.  CBOR Representation (application/senml+cbor)  . . . . . . . .  19
   7.  XML Representation (application/senml+xml)  . . . . . . . . .  21
   8.  EXI Representation (application/senml-exi)  . . . . . . . . .  23

But the trouble here was caused by the structure syntax suffix convention as is, and would actually have been eased if we had had a hierarchical way of naming available to us.