Re: [dispatch] Murray Kucherawy's No Objection on draft-ietf-dispatch-javascript-mjs-13: (with COMMENT)

Mathias Bynens <mths@google.com> Wed, 12 January 2022 07:42 UTC

Return-Path: <mathiasb@google.com>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 338EC3A10E3 for <dispatch@ietfa.amsl.com>; Tue, 11 Jan 2022 23:42:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.098
X-Spam-Level:
X-Spam-Status: No, score=-17.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 ZA7Qvh_P1gyv for <dispatch@ietfa.amsl.com>; Tue, 11 Jan 2022 23:41:58 -0800 (PST)
Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (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 C74343A10E1 for <dispatch@ietf.org>; Tue, 11 Jan 2022 23:41:58 -0800 (PST)
Received: by mail-pl1-x635.google.com with SMTP id n11so959154plf.4 for <dispatch@ietf.org>; Tue, 11 Jan 2022 23:41:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/82v2RHTpE68dTwCy3l+nL8ZFAhNYXEHvUu7CF6c2Io=; b=nqifxeJEy4C+ZhHvvadaqgNR6xWuujve/7/gG4g90bnHSesIvlEj8QaD3bANrgbcSP CA9qUBKFvRKQc/bkLESUurH8Stg8/HAkUCBrrVvbbcYy+cZ77WoWK/+8DmMRNVAkuKIB GjkafrDc2rtoVHLfY2xb452yu78LEquLiMyqCfT/PuCa07QrRKFK81YKc5jtR49qOmqU 8QWts/Y1bD/cR6DwJcUa+WLvNQJtm9q2zVoz/yNBxCGaxRhZ9/Fvc2Y6PeWvfdjwoGvR iIgmA76jDP+GJ68P/rJT98C8VhwEdJyV68q6fDdqTxLaK4rUmRLDdqELq1jHycuVz9HE X0wg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/82v2RHTpE68dTwCy3l+nL8ZFAhNYXEHvUu7CF6c2Io=; b=XouHh/y2xzi3ZzM0JvVILZeHEfBdgVqs1IJxwLuolkzTPMDWxIidNbnH7z+WccrQEs IbjmuH1E3TFIIK2fjgaNR8hEJ7+rcw3Et3DcdyRwr8R0t3zLqt7XB8mKD9Tou/+xciKL f1c2ExQd+HU5UsGTUjtqnGxIMMFbL3j/QulJgeCASNBLnbHN28S99x6zcn+wvTpu8B/3 ZvjKGY5ItdY+1+avJQdJUfpvcQ9jtsEhvPgxhpW0Zpp2yU2Wy5fvfNd/Vj5yQMoE1cub kOkb+YL8Stk7cS1sRW480X1/zgiT6P0uW4Ug9NzMX744pofUTo2GxOOZHuIQzNDoUHm/ hu6A==
X-Gm-Message-State: AOAM530WuYw351jyvnJNLzMoecgP1NsioBkHg7FOY6O6fJDL0nea+OIM 89QlUHvw84NjxRVDXewCe4yr5skWSahDOk3E7O//CQ==
X-Google-Smtp-Source: ABdhPJwjNq/T3HpNC+vGcDV5L74aSfTPghzERgWHLRDx1z4cNRjRQXmbT1BZR0cFWjwLjhxGQoMosm+AmEg1vVO6Hjk=
X-Received: by 2002:a17:902:760c:b0:149:ee23:8905 with SMTP id k12-20020a170902760c00b00149ee238905mr8503099pll.61.1641973316997; Tue, 11 Jan 2022 23:41:56 -0800 (PST)
MIME-Version: 1.0
References: <164144481153.28700.9521326921012553920@ietfa.amsl.com> <CADizRgYZhzFrNsoFP0M845zK9DgGi5Ci6pgVGVfcNzPkT31JyQ@mail.gmail.com> <CAL0qLwYgc13KXriZNPcB-XqC7i_ORDw01C5h2x93U22R3VCnSg@mail.gmail.com> <CADizRgaN9BvLztmJ6Q+kjV8fJM_hhXkQxFSRX2mgaFsP1RaBCA@mail.gmail.com> <01S8F3X371ZE00D1OX@mauve.mrochek.com>
In-Reply-To: <01S8F3X371ZE00D1OX@mauve.mrochek.com>
From: Mathias Bynens <mths@google.com>
Date: Wed, 12 Jan 2022 08:41:45 +0100
Message-ID: <CADizRgagPWfVfNk8U7o8UFQXAk3eTXoESWzQBB2JdrWe6xsVMQ@mail.gmail.com>
To: Ned Freed <ned.freed@mrochek.com>
Cc: Mathias Bynens <mths=40google.com@dmarc.ietf.org>, "Murray S. Kucherawy" <superuser@gmail.com>, DISPATCH WG <dispatch@ietf.org>, Ben Campbell <ben@nostrum.com>, dispatch chairs <dispatch-chairs@ietf.org>, The IESG <iesg@ietf.org>, draft-ietf-dispatch-javascript-mjs@ietf.org
Content-Type: multipart/alternative; boundary="0000000000004ab36405d55db4a9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dispatch/kdOEgMChcYIPnB6nTOJwGavWxXE>
Subject: Re: [dispatch] Murray Kucherawy's No Objection on draft-ietf-dispatch-javascript-mjs-13: (with COMMENT)
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dispatch/>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jan 2022 07:42:03 -0000

On Tue, Jan 11, 2022 at 11:32 PM Ned Freed <ned.freed@mrochek.com> wrote:

> In regards to all these obsolete registrations and x- registrtions
> in particular...
>
> > > What I've observed is that the current media type registry does not at
> > > present contain any of the "x-" media types this document is
> registering.
> > > I believe that makes them new registrations, and so I suggest that
> there
> > > should be text explaining why BCP 178 doesn't apply here.
> > >
>
> > Thank you. Please take a look at this patch:
> > https://github.com/linuxwolf/bmeck-ids/pull/65/files
>
> > For context, these are historical legacy types that are supported in
> > practice: https://mathiasbynens.be/demo/javascript-mime-type Although
> they
> > are OBSOLETED, it’s important that the document specifies them because
> they
> > are required for Web compatibility.
>
> There seems to be considerable misunderstanding about the rules regarding
> obsolete type names, unfaceted types, and type names beginning with "X-".
>
> First, RFC 6838 eliminated the special status of type names beginning with
> "X-". So nothing prevents you from registering type names beginning with
> "X-" as long as the registration is in the standards tree. Appendix A
> of RFC 6838 only applies if the type is being registered in, say, the
> vendor
> tree, which AFAICT is not the case here.
>
> Of course the fact that you can register names beginning with "X-" doesn't
> mean you should. So if you're doing this, a note explaining why ths makes
> sense would be a good idea.
>
> However, the better question is why are all these obsolete type names
> being registered separately. RFC 6838 section 4.2.9 explains the proper
> way to handle old names for the same media type, and the registration
> form now contains a field for listing all of these names.
>
> If you're going to register a bunch of separate types for a bunch of
> similar things, you need to explain why you're doing things this way,
> and more importantly, why they warrant having different names.
>
> And since in this case all of these additional registrations are marked
> as obsolete, I fail to see why they aren't being handle as deprecated
> aliases.
> Or, to pur this another way, why not simply list all 15 (!) aliases in the
> registration for text/javascript and get rid of section 6.2 entirely?
>

Thanks for the pointer to RFC 6838 section 4.2.9, and for suggesting such
an elegant solution. I’ve prepared a patch at
https://github.com/linuxwolf/bmeck-ids/pull/66 that reduces the draft down
to just two registrations, each with a set of aliases:

   - Under “Common JavaScript Media Types”: text/javascript and its aliases
   with file extensions .js and .mjs
   - Under “Historic JavaScript Media Types”: text/ecmascript and its
   aliases with file extensions .es and .mjs

To make it just one registration and remove section 6.2 entirely, we’d need
to list something like “Deprecated file extension(s): .es” alongside “File
extension(s)”, but I don’t see anything in RFC 6838 that would allow this,
and then we’d also be incorrectly listing .es as a legacy extension for the
common types which never had that extension in their registration. Given
that, I think the current patch is as good as it can get. Please take a
look.