Re: [media-types] Media subtypes containing "+"
"Murray S. Kucherawy" <superuser@gmail.com> Wed, 22 July 2020 19:55 UTC
Return-Path: <superuser@gmail.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 7AD723A091A for <media-types@ietfa.amsl.com>; Wed, 22 Jul 2020 12:55:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=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=gmail.com
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 MbEP4HT_cxJa for <media-types@ietfa.amsl.com>; Wed, 22 Jul 2020 12:55:41 -0700 (PDT)
Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 08CDC3A08E4 for <media-types@ietf.org>; Wed, 22 Jul 2020 12:55:41 -0700 (PDT)
Received: by mail-vk1-xa31.google.com with SMTP id h190so852981vkh.6 for <media-types@ietf.org>; Wed, 22 Jul 2020 12:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yiX57h4aAe+CALpcd7sRzyncv3/D6EHYniPeFqUmnpg=; b=QE7faSvMPENRRTXLuk73BzEJZ2/qu5aZXXlmROc1qyLzffhKsMgikRhYiWqA/xRG7M 1pf5zLDp5gbDGONVCl40ih7Uj/BPJtD9i3v3K9FhGLyGffV0dFaQbS2Q4oisjwqwk+ue qW/iUrf82JQPUWCry7fXnUBbJavkVB/PE3jzz6mdNaMKlwnVIrHp5GKKjW6N89OXdur4 C1+H04bREqcX6enIs0JURQrUIdz8xnMfukuFoQueqoeYUhScB1swLNxuHJJMKLbG6xc5 T+POivUr/xUWQYEBmrjnstSswLNbWVhmhXnj6CZb7v/RkgjpkdKMxNyeM/HYV1Fh2cg/ OxsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yiX57h4aAe+CALpcd7sRzyncv3/D6EHYniPeFqUmnpg=; b=bm97iEPGsIBjT538SCXyCj85HocnfXa6UEsFA9kaQFQI+7b3OgbyZLfushEi8CdGTt Yd17gKq6kJxezW9GXH2kIl6TEhDEmZAKQ3+TST/vbewgMi9CE3bPA3IE/MdepH5U6l7c AlsxIqsf6eHXttwk3ZHKZB+bgI6p3dww+RGr4rFBnDWYIZjB2SdGcpFhMjljebvN9MFQ kpCpXwZW7R1VsyRC7zRsbXnvCfOfF5Fc2oQz71QYZePLtNhzGz0rbrwMj5AwjWv77ql5 v6C3CQ4NDo8PH2UT9faOc6gRclCJ3us07gzaw7oz4iPRcF+kyJiMxem9g78vhBub1/sa sfZQ==
X-Gm-Message-State: AOAM533oxKyeE0cOddUOJATk87yRNbk5gYjN1a5NPUN3Bn6C9xkb0RJz N+4YGkMYBg4CxU9ceQqUcYuTcM/XU67YoXPumPM=
X-Google-Smtp-Source: ABdhPJxc+3wb719270CEAQ+/S/zkOEmNBBEXL8DylU0RMhjGPGXhmSZ2tiSLHUgXB6WWRpYtf/c1Q93HYzPFGUSi4js=
X-Received: by 2002:ac5:c76e:: with SMTP id c14mr1222732vkn.60.1595447739933; Wed, 22 Jul 2020 12:55:39 -0700 (PDT)
MIME-Version: 1.0
References: <3d459015-b748-9ee9-21ca-89e7229d030e@digitalbazaar.com>
In-Reply-To: <3d459015-b748-9ee9-21ca-89e7229d030e@digitalbazaar.com>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Wed, 22 Jul 2020 12:55:28 -0700
Message-ID: <CAL0qLwZso7eDLDNp2UUZwoRQdLa50KHsjO7vVgWC0jcrnCn-pA@mail.gmail.com>
To: Manu Sporny <msporny@digitalbazaar.com>
Cc: media-types@ietf.org
Content-Type: multipart/alternative; boundary="000000000000cbe8f905ab0d1fb6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/C9jQXMH8_OMxTPKF-DXNidomLvA>
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, 22 Jul 2020 19:55:42 -0000
Hi Manu, thanks for chiming in. On Wed, Jul 8, 2020 at 10:15 AM Manu Sporny <msporny@digitalbazaar.com> wrote: > So, we're getting cornered into having to pick something and it's going > to come down to: > > application/did+jsonld > application/did+cborld > > OR > > application/did-ld+json > application/did-ld+cbor > > OR (this seems to be the most tenable one) > > application/did+ld+json > application/did+ld+cborld > > The W3C JSON-LD 1.1 WG is at the end of it's life, and has not been able > to push this decision forward at IETF, so we can't easily register a new > MIME Type at this point. I'm sure there are some standards shenanigans > that could be played to do that between W3C Staff and IETF ADs, but > registering a new MIME Type for "jsonld" is broadly held as the wrong > thing to do. If we go down that path, IETF might consider rejecting all > new subtype submissions and JSON-LD will become a cautionary tale of > where subtypes went wrong... or perhaps there can be guidance given on > when *not* to use a subtype that would have prevented the JSON-LD folks > (specifically, me as the Editor at the time) from suggesting > "application/ld+json" in the first place. > > The alternate path is that "application/did+ld+json" is allowed, with a > clear rationale on why that's a good thing. We have already tested a > variety of popular MIME Type parsers across multiple languages out there > in the wild and they seem to do the right thing. > > We go into CR in the W3C DID WG in the next couple of months and we'd > like to register all of the relevant MIME Types for the Decentralized > Identifier specification by that time. We'd like to register at least > this one: > > application/did+ld+json > Mark is asking the right question, I feel: Do we know how well suffixes have fared, in terms of having been a benefit? I'm not sure how one would go about determining this. I would love to hear suggestions. What would break on the Internet if we were to do that? Are there other > options that we're not seeing? > I also don't know how to answer this, other than to claim that we tend to err on the side of being cautious about making assumptions. Having never implemented a browser or something else that has to handle media types, I don't know if I would look for a suffix by searching for a "+" from the left or from the right, and thus I don't know what would break because the results here are obviously quite different. My inclination is to ask that we debate a draft that's an update to RFC 6838, which describes media type suffixes more precisely in a way that explains how to use what looks like a nested suffix structure like this. That is, make it clear that "application/did+ld+json" is to be interpreted as a type of "application" and a subtype of "did" with a suffix of "+ld+json", or a subtype of "did+ld" with a suffix of "+json", or a subtype of "did" with two ordered suffixes. Is someone from the W3C willing to put such a draft together? -MSK
- [media-types] Media subtypes containing "+" Murray S. Kucherawy
- Re: [media-types] Media subtypes containing "+" Mark Nottingham
- Re: [media-types] Media subtypes containing "+" Julian Reschke
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" Nathan Rixham
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" Martin J. Dürst
- Re: [media-types] Media subtypes containing "+" Murray S. Kucherawy
- Re: [media-types] Media subtypes containing "+" Martin J. Dürst
- Re: [media-types] Media subtypes containing "+" rhiaro
- Re: [media-types] Media subtypes containing "+" rhiaro
- Re: [media-types] Media subtypes containing "+" Murray S. Kucherawy
- Re: [media-types] Media subtypes containing "+" Martin J. Dürst
- Re: [media-types] Media subtypes containing "+" Graham Klyne
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" rhiaro
- Re: [media-types] Media subtypes containing "+" Murray S. Kucherawy
- Re: [media-types] Media subtypes containing "+" Martin J. Dürst
- Re: [media-types] Media subtypes containing "+" Carsten Bormann
- Re: [media-types] Media subtypes containing "+" Mark Nottingham
- Re: [media-types] Media subtypes containing "+" Carsten Bormann
- Re: [media-types] Media subtypes containing "+" Mark Nottingham
- Re: [media-types] Media subtypes containing "+" Eric Prud'hommeaux
- Re: [media-types] Media subtypes containing "+" Manu Sporny
- Re: [media-types] Media subtypes containing "+" Phil Archer
- Re: [media-types] Media subtypes containing "+" Murray S. Kucherawy
- Re: [media-types] Media subtypes containing "+" Manu Sporny