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

Mark Nottingham <mnot@mnot.net> Fri, 05 February 2021 01:03 UTC

Return-Path: <mnot@mnot.net>
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 5FE703A1A2C for <media-types@ietfa.amsl.com>; Thu, 4 Feb 2021 17:03:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=ooD8YF1o; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=ONJlBk6/
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 X0VwGAekjvTs for <media-types@ietfa.amsl.com>; Thu, 4 Feb 2021 17:03:49 -0800 (PST)
Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EB03B3A1A2E for <media-types@ietf.org>; Thu, 4 Feb 2021 17:03:49 -0800 (PST)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2793B9F4; Thu, 4 Feb 2021 20:03:49 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 04 Feb 2021 20:03:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=E JIz/CJw/ozjcvRxrNnNHVS7DaALuA6Aobe5EHWM8rM=; b=ooD8YF1oDsMUf8ufv keVpXYl9uHPEGNXMAVH0BaVuRHLBy0tQhxvhg7inzE3pSOMme0EHnf2+T3DfG4aN ZHIR/NnjXJoHdKKrj29BmiZHBrSKTGTweiLkmtpo3zGVt3HMxqOxUC9Td3VUr/sB Eokd/9drr3GtG8IzgUmBbhqxB/P+6AS9Cqm+cn92uxOHK7/bK6+RRCToDOjBuE93 447gr+1cPgUEzFwHAS8EW7+gUkfSapRuNYqxwmAeXac0UfbiTG/lil3WnHMtWZtQ V0I+/d2QWw2/svz9FbEj03WdId6aXabqexEDalvzsTkC7Nm5I/4M2I31USGRS0zK pVpfA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=EJIz/CJw/ozjcvRxrNnNHVS7DaALuA6Aobe5EHWM8 rM=; b=ONJlBk6/h8TQ1PzRm1tGgXKSgSWnJwkjvRPDuEq1BFqburzXb74sGOM8Y 43C9Qj+oulkmADy4fJoD1vMqTEJnsNCwPNYzLBTubIUBhhcuuqCFoRg4pUN9IHmk MjtXUxGBlVtrJ6ExdH/euB7u64E3ZrTlszmILJXy3iQIK5O+jE4R73f+RdcSePRH HNqIOUY9MRmYCW45MiBPhHU5VxB3Xde4kNAuB0yMrNt417wQpPLl+GXn8TdsxOin 735asRmz2qTtXPHHO1NasxwFZeoQxCclCwGDFcltlmDrRc1tIiHG1SXTf45IUJEw 1oSeldyQ9k37utvVMro+8pnMbLpzQ==
X-ME-Sender: <xms:dJkcYMeDbzr5J3hltLDJ2LmjhTZa8Vu9jPaoqkhASigZXS7UggN-gw> <xme:dJkcYOMBSmcgwmliI1TDi7tVOsuSRkiRWX-NlV7z5EJTziyfqDlPJDuLHKJ_vUQ-M 9qeJke30Cr06cTJfA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgeehgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeforghrkhcu pfhothhtihhnghhhrghmuceomhhnohhtsehmnhhothdrnhgvtheqnecuggftrfgrthhtvg hrnhepfeegvdfgjeegvdetuedukeevfefhheelieevjeejkefhffehkeejieekjedtheej necuffhomhgrihhnpehivghtfhdrohhrghdpmhhnohhtrdhnvghtnecukfhppeduudelrd dujedrudehkedrvdehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehmnhhothesmhhnohhtrdhnvght
X-ME-Proxy: <xmx:dJkcYNgX2QbVrtzu46EIaswu8koSSkUTf4vAj-CupHq9LvnqRd0RYw> <xmx:dJkcYB-j3oV7hyyFbsRfbWdTgKolj7x-l_YeWf0_LFnuWpxAimhWyA> <xmx:dJkcYIsSMYWn0Z-CTJTUepgWOpzOmyOtDJK0x7KDLHXEAe-iNCM__w> <xmx:dJkcYEJYv-7DYz8tIrgWZoYTOsHzHtRqs129xk6qtGdxW9FXNmqrIw>
Received: from [192.168.7.30] (119-17-158-251.77119e.mel.static.aussiebb.net [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 5416824005A; Thu, 4 Feb 2021 20:03:47 -0500 (EST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <EBDFC059-DD77-4A70-83A9-CBC51E1BE107@tzi.org>
Date: Fri, 05 Feb 2021 12:03:45 +1100
Cc: "Murray S. Kucherawy" <superuser@gmail.com>, media-types@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <DBA6E316-6D8B-461A-B8A6-2471EAD938A3@mnot.net>
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> <EBDFC059-DD77-4A70-83A9-CBC51E1BE107@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/02YGxMepCsZjhqpiT6pfurf-ZuQ>
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: Fri, 05 Feb 2021 01:03:52 -0000


> On 3 Feb 2021, at 12:06 pm, Carsten Bormann <cabo@tzi.org> wrote:
> 
> 
>> 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.

Perhaps, but people make assumptions about conventions and build features based on those assumptions. That's when the fun starts.

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

Which brings to the fore -- what actual value does this convention, feature, whatever you want to call it, bring? Why are we structuring data and saying that it doesn't mean anything?

If the answer is "because people have started using this and we've painted ourselves into a corner" say so.


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

And I strongly suspect that as soon as this is allowed, people are going to start to build a processing model around the suffixes, and make other assumptions that extend media types in ways that aren't a good idea.

Anyway, the question was asked and I've said my piece.


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

--
Mark Nottingham   https://www.mnot.net/