Re: [Json] [Technical Errata Reported] RFC7493 (6861)

Rob Sayre <sayrer@gmail.com> Fri, 25 February 2022 23:23 UTC

Return-Path: <sayrer@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 50C4A3A0A9A for <json@ietfa.amsl.com>; Fri, 25 Feb 2022 15:23:45 -0800 (PST)
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 Ze0UyZr2s4Yl for <json@ietfa.amsl.com>; Fri, 25 Feb 2022 15:23:40 -0800 (PST)
Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 B90C63A0AA3 for <json@ietf.org>; Fri, 25 Feb 2022 15:23:39 -0800 (PST)
Received: by mail-wr1-x42f.google.com with SMTP id b5so6636814wrr.2 for <json@ietf.org>; Fri, 25 Feb 2022 15:23:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8AORVa3mQxCigA12nW9Wvi4l4Eulcc/0Q14ACtAr9Zg=; b=BHA4Ip1PV+cdx/4oo2aCKQ/mPseFzCmepirSfg3Bkvwv3ddQBzNGyn2gmIXDkr9oL2 MOuJTApjtAzi/hynWkVMDrhik1oGVfMLaK2r9j1NDor6RgC5m3uAOpvQpY7qsKRbAAbG hpAAoeJ2cDPvnFUUxsyJ1UESFAhJTVwRk9iDg+sE9bJVBJL1BWta3i5IkRXxRzAB9L01 yErblhgAebwlPAFyCYIQmssT3kOjzLZ4qA+VxFcUcgfUUhTVxQZBkuY4jSiR+/AWZqdS kn+vQZOEhALiTpyeCduS6x5dPXVvU1+imdW3h5Ppf+36wc4JikmsKhQZRlSeDAQGth6j OzGA==
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=8AORVa3mQxCigA12nW9Wvi4l4Eulcc/0Q14ACtAr9Zg=; b=d56VmlwndeGPCXQn19R1mTggLpRBuHnLs1VXZPXH9VmBrk6+tCwOhvLIu4G8tJhXpj OAkfb/4vDSQn/I7gv+Y3aM3kFgwd8OXxSqphwaNSHh8odof5khcis0FVjD+yfyqzcNOr Jj+UX1T5xvyCIsPw8x4r9QFFL9BtNyWf984YAbDuCkl/H7i6r+VprKJAkH82b3URp32J 5oDpUc99un/U9DJ+7F+Bo9m9iAD/uO/C690KUY/HzpILZpgX6H7+WNp87U7rbU9QvirQ 04f56XRQPcnjkArBFx2ZxUXeiAS2Ln1FXz6JL3QWTubyQz8YIeLQ0M/eRvaWehKIDMC/ 0yHA==
X-Gm-Message-State: AOAM531zYsFHbZ83GxfWaz7uW4uYUlaHQNm0rTyqVMd8c6NKDM7PJ4OT 84hrBqbDQBwNoKAdts7t81zuL+JniZJcYV9ZbXM=
X-Google-Smtp-Source: ABdhPJzEQvx0OgjOg+6tSnUjF2J2SWhc2jNF9Vg+ftymEM8t0Ky3jCfZrklYA6i8QkjJNmZTSD0ErNqEWVbpy+UyBLM=
X-Received: by 2002:adf:9106:0:b0:1e3:c02a:f4af with SMTP id j6-20020adf9106000000b001e3c02af4afmr7905000wrj.150.1645831417648; Fri, 25 Feb 2022 15:23:37 -0800 (PST)
MIME-Version: 1.0
References: <20220225204920.AD30337E87AF@ary.qy> <798F8823-738D-4DC5-AD81-A21630C3A330@mnot.net> <CAChr6SxSh31MGmpxN_LOT6VrZE9=VGTvtgKtpuP6HB5UoPQFkg@mail.gmail.com>
In-Reply-To: <CAChr6SxSh31MGmpxN_LOT6VrZE9=VGTvtgKtpuP6HB5UoPQFkg@mail.gmail.com>
From: Rob Sayre <sayrer@gmail.com>
Date: Fri, 25 Feb 2022 15:23:26 -0800
Message-ID: <CAChr6SyG=i6HQsJq_i2oc1+qC0U9QB546qaSPvyzA6wt4+_XtQ@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: John Levine <johnl@taugh.com>, Carsten Bormann <cabo@tzi.org>, JSON WG <json@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000025bf205d8dffddb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/JjghMgPK1G_PBlugQQzK0PlM_B8>
Subject: Re: [Json] [Technical Errata Reported] RFC7493 (6861)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 25 Feb 2022 23:23:46 -0000

To clarify, since someone asked:

There were many deployed JSON parsers by the time it entered
standardization both in the IETF and TC39. Originally, it only allowed "{"
and "[" as the leading characters. People found this inconvenient, and it
was noted that the primitives could be unambiguously expressed without a
surrounding data structure, while preserving compatibility with the
"eval()" functions in many languages.

There was wide agreement, and everyone rearranged their parser state
machines. I sincerely doubt anyone has ever written separate Unicode
routines for the case the errata mentions. I'd accept the errata but do no
further work.

thanks,
Rob


On Fri, Feb 25, 2022 at 2:59 PM Rob Sayre <sayrer@gmail.com> wrote:

> No, everything accepts them, unless they are really strict I-JSON ones,
> but I haven't seen many of these. Nothing crashes. This is not worth
> working on, imho.
>
> There's an understandable mistake here, since top-level primitives were
> added late in the game, but it doesn't matter.
>
> thanks,
> Rob
>
>
> On Fri, Feb 25, 2022 at 2:33 PM Mark Nottingham <mnot@mnot.net> wrote:
>
>> Agreed - they're not rules so much as guidelines.
>>
>> We should check with TC39, of course.
>>
>>
>> > On 26 Feb 2022, at 7:49 am, John Levine <johnl@taugh.com> wrote:
>> >
>> > It appears that Carsten Bormann  <cabo@tzi.org> said:
>> >> On 2022-02-25, at 16:56, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>> >>>
>> >>> I agree it would be stupid; it was also kinda stupid for us to have
>> missed this in the creation of I-JSON. I am
>> >> arguing agains the acceptance of this erratum from the standpoint of
>> the long-established erratum rules, not from
>> >> whether the proposed change is a good idea.
>> >>
>> >> I’m not sure I understand what you mean.
>> >>
>> >> This is clearly a case where the English words turn out not to express
>> what the consensus of the WG was (*).  That
>> >> needs to be fixed, and the fix is obvious to anyone skilled in the art.
>> >
>> > We get lots of errrata that say the text in the RFC says X but that is
>> > clearly wrong, it should say Y. We approve them without any trouble. I
>> > don't see why this one is any different.
>> >
>> > I also concur with the Tim's observation about stray surrogates. In my
>> > experience, either the code catches them and returns an error, or it
>> > doesn't and it crashes.
>> >
>> > R's,
>> > John
>> >
>> > _______________________________________________
>> > json mailing list
>> > json@ietf.org
>> > https://www.ietf.org/mailman/listinfo/json
>>
>> --
>> Mark Nottingham   https://www.mnot.net/
>>
>> _______________________________________________
>> json mailing list
>> json@ietf.org
>> https://www.ietf.org/mailman/listinfo/json
>>
>