Re: [core] [Last-Call] Call for comments on draft-ietf-core-problem-details-07

Carsten Bormann <cabo@tzi.org> Thu, 30 June 2022 21:33 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E0346C14792E; Thu, 30 Jun 2022 14:33:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YrNelFwsqLqq; Thu, 30 Jun 2022 14:33:51 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6F59C14F74F; Thu, 30 Jun 2022 14:33:49 -0700 (PDT)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4LYs5k5KpFzDCcp; Thu, 30 Jun 2022 23:33:46 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <bcd7e326-d644-4e23-f9e3-ac92587dca6c@alumni.stanford.edu>
Date: Thu, 30 Jun 2022 23:33:46 +0200
Cc: tom petch <daedulus@btconnect.com>, Francesca Palombini <francesca.palombini=40ericsson.com@dmarc.ietf.org>, Applications and Real-Time Area Discussion <art@ietf.org>, Core WG mailing list <core@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "draft-ietf-core-problem-details.all@ietf.org" <draft-ietf-core-problem-details.all@ietf.org>
X-Mao-Original-Outgoing-Id: 678317626.149099-3613f1ae34dc3f3f2558d97f2ba1c397
Content-Transfer-Encoding: quoted-printable
Message-Id: <7A531F2F-9528-49C5-82EA-05722D8329E8@tzi.org>
References: <165511479760.19573.12671700576299137749@ietfa.amsl.com> <63D13796-758D-469B-AFA8-3050C9F87819@tzi.org> <dde9d36c-61e5-afcc-e15a-787c99d5fba9@it.aoyama.ac.jp> <0012F049-354A-4450-B923-857D24AB9459@tzi.org> <90b785ef-934b-da9d-7d89-7018bdebbb75@it.aoyama.ac.jp> <B96E980A-72E3-4678-B214-8464958845BB@tzi.org> <ff5f8ff1-67fc-eead-6b38-62c8d64ebf45@it.aoyama.ac.jp> <4207E390-270A-463B-A38A-063AD2436370@tzi.org> <16D5BCD8-769A-41C0-A178-6893678CB526@tzi.org> <PA4PR07MB86244C52223D7BE9F1886BE598B89@PA4PR07MB8624.eurprd07.prod.outlook.com> <AS1PR07MB86160DEF13089FF61CD4B55598BB9@AS1PR07MB8616.eurprd07.prod.outlook.com> <62BD8990.9080502@btconnect.com> <bcd7e326-d644-4e23-f9e3-ac92587dca6c@alumni.stanford.edu>
To: Randy Presuhn <randy_presuhn@alumni.stanford.edu>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/r8TVZeDDRzzp9mvreX38FFdsE2g>
Subject: Re: [core] [Last-Call] Call for comments on draft-ietf-core-problem-details-07
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Jun 2022 21:33:55 -0000

On 2022-06-30, at 21:01, Randy Presuhn <randy_presuhn@alumni.stanford.edu> wrote:
> 
> However, I'd draw your attention to
> https://datatracker.ietf.org/doc/html/rfc5646#section-2.1.1

(Which indeed is referenced from that very note.)

> Requiring comparisons to be case-insensitive is not the same thing
> as requiring the canonical form to be lower case, particularly if
> these tags might be presented to humans somewhere along the way.

Right.

My personal knee-jerk reaction to case-insensitive data formats is to heavy-handedly force lower case in all places where this at all can be done.

So I would have used [a-z]{1,8}(-[a-z0-9]{1,8})* instead of [a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})* as the regexp for a language tag.

But RFC 5646 Section 2.1.1 recommends a different preferred case, and unless someone can conjure a groundswell that this should be abandoned summarily right now, I would think it is the right thing to follow that recommendation, even if it has not been renewed for 13 years now (weaker versions of it also were in 4646 and 3066).  
On the other hand, trying to enforce the recommendation by mapping this recommendation to the regexp would make that very complicated again.
So we do have a somewhat complicated preferred encoding of the language tag, but it is not enforced.

I think we are in the right spot here.

Grüße, Carsten