Re: [Jmap] [art] [Last-Call] Artart last call review of draft-ietf-jmap-contacts-06

Rob Sayre <sayrer@gmail.com> Wed, 03 April 2024 01:21 UTC

Return-Path: <sayrer@gmail.com>
X-Original-To: jmap@ietfa.amsl.com
Delivered-To: jmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B705C14F6F1; Tue, 2 Apr 2024 18:21:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fiTFCrP4XNdc; Tue, 2 Apr 2024 18:21:53 -0700 (PDT)
Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 99E6BC14F6A5; Tue, 2 Apr 2024 18:21:48 -0700 (PDT)
Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2d71765d3e1so59482741fa.0; Tue, 02 Apr 2024 18:21:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712107306; x=1712712106; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5OwqKL0AZDfDlapdY9utx4RufEU5gOxvn9YGU+OoO6Y=; b=IHoF1P0NBeY8DKRBdsJ4GkAcvKKkbYNLStF3Lcq+26jaIeBoxUeoyy7kfpSDqErlzX IhEgP+PHJ6C+3XM9EEgYWBlfbCV47Jqg8N8cVjwWCZkh74hClirDiUhzxKoTcvBOQ/LU 8rLrvHC/3m2Vi4ih+TXjpxmt2RpXq+AfrWHQHNF/PnWZzSWOd1+yo21JsL8GS91BTYyD sL61eqlEgcqiCrkpQOZ2eMB6aMgBIRJqhXtxjRktigy6yGlE6hXgo0SzzD1XdhulOwNi molsnzP1BGkWmU2yETDEM2iiE5s3lQzPYFAybQ0OryEFzSVFKgtAPM4628skvi6agFsB s8KA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712107306; x=1712712106; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5OwqKL0AZDfDlapdY9utx4RufEU5gOxvn9YGU+OoO6Y=; b=ds3FcNXoB2La5LH9Jb2mmV/F2UZrwMh+3gg/d8Gq1GwHXQP3iLfMoMvxmUOYLa0ld8 28TvEceUcLEwrXSvhG2lDTlTodiqMkgZDPU70b8lOJaG+BpNDz6zD4ALsV8dm2KEJ1X5 ftfr4TfKcKg5kgrDj41WQT8yauYUySHhGl8TK6oBjU4AaxFsMZHNDlkTiYvWHJ2jGBlm BGv5+tP1aKkMPJaKqxJWLulw1Cfk9/F0rtz65fnsfsMe2yexpbtpeYKIDwj+9t9bOjw+ oSWyXUap4QuzrEHK24YGsGlcGux4sXvjoHiCQ66NTFX7kRdJDgJJ84tuJt41Z3vH6MIu p8nQ==
X-Forwarded-Encrypted: i=1; AJvYcCXVDRvMMBtXSCXGYNtphIiZPk5EV+oSSYxOldG6aOnk4IwXxaiKHRmRupJBPaf3aRxChrr72GRKiG/H2X2OkCYV3P5oqU9vILS6b5YOANcL6fRvRSnADTjZ94CkfcQgFBo5W79OHPxa2waqK1vfN8v2GL9giE7dYmhuO7dEZTh9P42SfocfjQ==
X-Gm-Message-State: AOJu0Yx5s4y/k85AIt8QD9YJCu4TVHTV4AYuv8blApapLf52MP9UTzQE TWu8nccms8gwToJ5hDSte4u116FLO72qs50GY3K9nxMT0w7s4bE7OJ6V0zEz6vkzag3wcI/h2yl 8jLHWE8cnDmYSJCfzurqMvw5ci5Wb1VigkOhnsQ==
X-Google-Smtp-Source: AGHT+IGE2HvlwkUWq7qPWZ3xxRrj9SRPEzxNyBa/+xxLt4bJcA9duzJVs00XdR0VEN58/4uCUI60oOe71a3uP0XkWjk=
X-Received: by 2002:a2e:a4d9:0:b0:2d8:3e07:5651 with SMTP id p25-20020a2ea4d9000000b002d83e075651mr121951ljm.34.1712107306074; Tue, 02 Apr 2024 18:21:46 -0700 (PDT)
MIME-Version: 1.0
References: <171112316193.8644.5801107423421446407@ietfa.amsl.com> <1C02FE5D-624B-4BBE-A7F3-91EDF54CDE4F@tzi.org> <b5fac088-9eb3-4ede-a266-f943aeaab076@stpeter.im> <4E9A8148-9EFE-4448-B94E-96FBDB6A2B9A@tzi.org> <06c317c8-8d14-4d78-a4c9-9c44cfc3ec31@stpeter.im> <03ef2b74-19d2-43c1-9c5b-b0aa315c8738@dogfoodapp.fastmail.com> <5c10be7c-8913-46f5-a0bd-e28102624d88@stpeter.im> <C42C278BC5CB8F3EE2920E99@PSB>
In-Reply-To: <C42C278BC5CB8F3EE2920E99@PSB>
From: Rob Sayre <sayrer@gmail.com>
Date: Tue, 02 Apr 2024 18:21:34 -0700
Message-ID: <CAChr6SxAv6EcQdx5Gn3ZCS_Rp9xZ2tfMwibwsy3-zd8ggYLSwA@mail.gmail.com>
To: John C Klensin <john-ietf@jck.com>
Cc: Peter Saint-Andre <stpeter@stpeter.im>, Neil Jenkins <neilj@fastmailteam.com>, Carsten Bormann <cabo@tzi.org>, Tim Bray <tbray@textuality.com>, art@ietf.org, draft-ietf-jmap-contacts.all@ietf.org, IETF JMAP Mailing List <jmap@ietf.org>, last-call@ietf.org
Content-Type: multipart/alternative; boundary="000000000000cbced00615270b04"
Archived-At: <https://mailarchive.ietf.org/arch/msg/jmap/3NQ6pS_omm-NeaemiUuESt6JdaI>
Subject: Re: [Jmap] [art] [Last-Call] Artart last call review of draft-ietf-jmap-contacts-06
X-BeenThere: jmap@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: JSON Message Access Protocol <jmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jmap>, <mailto:jmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jmap/>
List-Post: <mailto:jmap@ietf.org>
List-Help: <mailto:jmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jmap>, <mailto:jmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Apr 2024 01:21:57 -0000

On Tue, Apr 2, 2024 at 5:44 PM John C Klensin <john-ietf@jck.com> wrote:

> It seems to me that your conclusion depends on an assumption
> about "the JMAP community" that might be questionable.  An
> analysis of the JMAP specification leads me to a slightly
> different conclusion; inline below.
>

At the risk of repeating myself, I don't think PRECIS really does the trick
here, even though it's easy to see it does work sometimes (I went and
looked at the "Referenced By" stuff in the datatracker). The document is
"Preparation, Enforcement, and Comparison of Internationalized Strings
Representing Usernames and Passwords".

But there are other problems that will come up, like writing street
addresses in Japanese, Thai, etc., as written here:

https://datatracker.ietf.org/doc/draft-ietf-calext-jscontact/

So, while PRECIS might apply cleanly to this draft, I think the JSON
implementations will be facing much more varied content.

That's why I prefer the approach here:

https://datatracker.ietf.org/doc/draft-bray-unichars/

It's also realistic about the fact you will get the so-called "toxic waste"
from whatever JavaScript's JSON.parse and JSON.stringify do. This way is
even better as it relates to "any UTF-8 string", because the Unichars draft
covers escape sequences. The issue in JSON or XML is that you can send
perfectly valid UTF-8, but there might be escape sequences that represent
total garbage from a Unicode perspective. The Unichars draft provides some
usefully adversarial examples.

thanks,
Rob