Re: [media-types] Mime type for patch files?

Henrik Andersson <henke@henke37.cjb.net> Thu, 01 November 2018 12:23 UTC

Return-Path: <henke@henke37.cjb.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 08CCE1276D0 for <media-types@ietfa.amsl.com>; Thu, 1 Nov 2018 05:23:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] 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 RBfIUvTvDCKD for <media-types@ietfa.amsl.com>; Thu, 1 Nov 2018 05:23:13 -0700 (PDT)
Received: from v-smtpout1.han.skanova.net (v-smtpout1.han.skanova.net [81.236.60.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41F62124D68 for <media-types@ietf.org>; Thu, 1 Nov 2018 05:23:12 -0700 (PDT)
Received: from [192.168.1.3] ([81.227.16.59]) by cmsmtp with ESMTPA id IC08gzdzxONS2IC0Bgt4Bm; Thu, 01 Nov 2018 13:23:09 +0100
To: Eric Prud'hommeaux <eric@w3.org>, Petter Reinholdtsen <pere@hungry.com>
Cc: media-types@ietf.org
References: <sa67ehyzo3s.fsf@meta.reinholdtsen.name> <20181031102655.GI17721@w3.org>
From: Henrik Andersson <henke@henke37.cjb.net>
Openpgp: preference=signencrypt
Message-ID: <c419db69-9677-3467-c777-7758450a55fd@henke37.cjb.net>
Date: Thu, 01 Nov 2018 13:23:04 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <20181031102655.GI17721@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfLdi0x0lLZ+0HENyoLsYD7U/Vw6AzxTS0a50swucw8dzfIYUIzkKZRgSW9AnyScMZl9dVcMZ+u9q3sa7+XST1vV7ARKcHdq4mRh8fxlzY1AdAEtmBEv+ rsya+zBfEGxAYyHb5AMCQqYa/cASouHMsVAnfbuCbfGxe03hd58ChuWtx8nSi72dryDbQgRINzTETi88n62YSrKRMPeHSAbNpB0=
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/BwD3F23dnnQiZQlEDsUO7JqYffQ>
Subject: Re: [media-types] Mime type for patch files?
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: Thu, 01 Nov 2018 12:23:16 -0000

Eric Prud'hommeaux skrev:
> I think this negotiation must happen with the tool maintainers which
> currently recognize text/x-{patch,diff}. Given that that's probably
> impossible, the answer is almost certainly that you are stuck with
> "x-". Thanks for picking this up.
>
> I tried to answer your question but ended up puzzled by this text in
> [RFC6838]:
> [[
>    Note that types with names beginning with "x-" are no longer
>    considered to be members of this tree (see [RFC6648]).  Also note
>    that if a generally useful and widely deployed type incorrectly ends
>    up with an "x-" name prefix, it MAY be registered using its current
>    name in an alternative tree by following the procedure defined in
>    Appendix A.
> ]]
>
> The only "x-" subtree in [IMT] is "x-www-form-urlencoded", and maybe
> it's an exception. The tricky question is whether x-{diff,patch}
> deserve the same exception. On one hand, we don't want a slippery
> slope of exceptions, on the other hand, the tree's job is to document
> current or achievable reality.
>
>
> [RFC6838] https://tools.ietf.org/html/rfc6838#section-3.4
> [IMT] https://www.iana.org/assignments/media-types/media-types.xhtml#application
>
In short, don't use the "x-" prefix. And don't use the "x." prefix
either. Those explicitly mean "not registered". The mentioned exception
is a sad reality that only came to pass because of the insane costs to
change it. There are no such costs here.