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

Mark Nottingham <mnot@mnot.net> Fri, 03 July 2020 01:20 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 185C33A0A68 for <media-types@ietfa.amsl.com>; Thu, 2 Jul 2020 18:20:05 -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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=EW+Ixajo; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=Pb2YuFrG
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 gN_T_ysC1Dcg for <media-types@ietfa.amsl.com>; Thu, 2 Jul 2020 18:20:03 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0DDB73A0A7B for <media-types@ietf.org>; Thu, 2 Jul 2020 18:20:02 -0700 (PDT)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 326925C016A; Thu, 2 Jul 2020 21:20:02 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 02 Jul 2020 21:20:02 -0400
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=fm3; bh=I dHlMGHvwPDa0/rDHzFZK2foqfepFGV99FvkYsmKHVo=; b=EW+IxajoHxJv4KBs8 jLvwzFC2crX9KfshuSaJfCy8FPfONfoxovC3VpemYzlv4g6tmGUtGhAdbu5RaLTH Q5e074Lne5tOVe6TY998Z75+Tq4A6jmvi7ZxtJU48Nn1W5bpQL9xN7rZ/qoDIdbh dh3P4lLMrTVVWbdmfm/xUiSkuvVR9CtshqBkpQENY/+P6k4GmtM9NwP8xWR5DW8Q TVrBJePOeIriqO7lYccyYfWqrmRZp5Q/tZYXBQjStuGdVJ0wJ0uL0vOXWIrk1S0A 1fH7Pc6VM6aNN122szejx3y9zxWNllni141YwrMlmBp3GtE2iyXvge/meiZHaHIu pHq/w==
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=fm3; bh=IdHlMGHvwPDa0/rDHzFZK2foqfepFGV99FvkYsmKH Vo=; b=Pb2YuFrGFQVRNxf8zS1BGIOnVXbkeJS89TEnMkyP8H1BufzWGs2Dqlg8o jOiNzE/TS2vnOp7QkCFM6kEl8+3EzXVK9uY10Sro3vuPiZe0YMARU4SSCYwoFmGa a87/LkG/UIF4dLvsl8uDkX3lOwWm0ZMJgkIrYFuR7f8/8+558mF92v3N6XOFhpkX 9g1Z4B4e8J59z8oau3cujVBmrGw+xlF7QIpo/ajhtP5XlSvSU1IrfdPxPEcDz+3T JQ5rV9LFEtxTnWEVoq7h82CNQE33Ro9c7DWczyx/YULrHYbhdOCCMDGWUKCMS0eY mAvA6oVyDA+NtnEgYz4n9NyekUXsA==
X-ME-Sender: <xms:wYf-Xm_UJL-lPagF5XOzKkm4GmYd4nc-SxTzCQ_R9zTcLrzKsXeZMA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdehgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurheptggguffhjgffgffkfhfvofesthhqmh dthhdtvdenucfhrhhomhepofgrrhhkucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhn ohhtrdhnvghtqeenucggtffrrghtthgvrhhnpeekuddvleejgeethfevkefhtdevkeelve ekfeegleduiefhudegvdeiuefftddthfenucffohhmrghinhepihgvthhfrdhorhhgpdhm nhhothdrnhgvthenucfkphepudduledrudejrdduheekrddvhedunecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhnohhtsehmnhhothdrnhgv th
X-ME-Proxy: <xmx:wYf-XmtJ1Nm9J09rLZ3kFD4COW2O353DxBn3NVnsGmAWBkkV0_u4EQ> <xmx:wYf-XsC8XemSgO7KFAKZtoxOo0bhYSqfiYPgDWUJ7v1m7xwk6qjw9Q> <xmx:wYf-XudJYVqDdSuI_XSipvdx_yX71nyw3JxkKcsrPOg1igAFz4IwcA> <xmx:wof-Xh0LK1b66O8d0fR_iZ_1tB1o5Scp4172CeKIANwdmkum_iW6bA>
Received: from macbook-air.mnot.net (119-17-158-251.77119e.mel.static.aussiebb.net [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 963B83280059; Thu, 2 Jul 2020 21:20:00 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAL0qLwZGum3X3SGH8EQGdH+cZuOjSsEyQad1Tk3Q=HyuthXvvQ@mail.gmail.com>
Date: Fri, 03 Jul 2020 11:19:57 +1000
Cc: media-types@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <6E14C19A-AD5B-491F-90A0-218553CAD235@mnot.net>
References: <CAL0qLwZGum3X3SGH8EQGdH+cZuOjSsEyQad1Tk3Q=HyuthXvvQ@mail.gmail.com>
To: "Murray S. Kucherawy" <superuser@gmail.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/U1DpoX2rxOqoH7pXlWpOPUqyTBQ>
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, 03 Jul 2020 01:20:05 -0000

Hi Murray,

The argument for media type suffixes, as I understood it, was that it gave a way for generic parsers to somehow process the document based upon the more general conventions, even if they didn't know about the exact format in hand.

That always struck me as a fairly weak motivation; for example, the most one can do with XML is make sure it's well-formed, pretty-print it, and if you're lucky, apply a stylesheet or check a schema if they're inline. You can also colourise the elements and attributes, I suppose. For JSON, there's even less (e.g., there aren't any rigorously defined hooks for applying a stylesheet or attaching semantics).

So I'm not excited about adding more complexity to names, or leading people to believe that the structure actually does something useful. The questions you ask are relevant, and are similar to other issues we've faced (e.g., when people try to make field name prefixes meaningful). I suspect people want to do this sort of thing mostly because it gives their format convention more visibility (because it will appear in more places) than any technical reason -- but I'm happy to be proven wrong there.

So I'm -0.5 on accommodating this; there may not be any great harm, but specifying it consumes resources and makes things more complex.

Getting some more data about how media type suffixes in general have fared, as well as details about the use cases being promoted, might change my mind.

Cheers,


> On 3 Jul 2020, at 3:29 am, Murray S. Kucherawy <superuser@gmail.com> wrote:
> 
> Before I joined the IESG, we (the media type reviewers) processed a request for a media type that included a "+" character.  Specifically, the request was to register "application/ld+json", and an implied media type suffix of "+ld+json".  This was a revision to an existing media type.
> 
> It included an implicit media type suffix registration, i.e., prose that said:
> 
> "Other specifications MAY create further structured subtypes by using +ld+json as a suffix for a new base subtype, as in application/example+ld+json. Unless defined otherwise, such subtypes use the same fragment identifier behavior as application/ld+json."
> 
> We had the applicant remove this text and instead suggest that they need to register "+ld+json" independently as a media type suffix, but that such a registration would likely be denied until such time as the community has had a chance to discuss its implications.
> 
> The question is around nested suffixes like this.  There's already a "+json", of course, but we should probably be clear someplace (maybe an "updates" document to 6838, maybe a revision) about how to process these if we're going to allow them.  One might think that "+json+zstd", for example, would do the "obvious" thing, but that's not the kind of thing that should be left to interpretation.
> 
> More generally, if I were to see application/foobar+a+b+c, should I be looking for one suffix called "+a+b+c", or three individually named suffixes, or other combinations, and in what order would they be applied, etc.?
> 
> -MSK
> _______________________________________________
> media-types mailing list
> media-types@ietf.org
> https://www.ietf.org/mailman/listinfo/media-types

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