Re: [Json] [Technical Errata Reported] RFC7158 (3907)

"Paul E. Jones" <paulej@packetizer.com> Tue, 04 March 2014 20:13 UTC

Return-Path: <paulej@packetizer.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD1561A0263 for <json@ietfa.amsl.com>; Tue, 4 Mar 2014 12:13:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.538
X-Spam-Level:
X-Spam-Status: No, score=-1.538 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_ALL=0.8, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.547, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01] autolearn=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 HeEk-lwegELy for <json@ietfa.amsl.com>; Tue, 4 Mar 2014 12:13:00 -0800 (PST)
Received: from dublin.packetizer.com (dublin.packetizer.com [75.101.130.125]) by ietfa.amsl.com (Postfix) with ESMTP id BE82A1A020D for <json@ietf.org>; Tue, 4 Mar 2014 12:12:59 -0800 (PST)
Received: from [192.168.1.20] (cpe-024-211-197-136.nc.res.rr.com [24.211.197.136]) (authenticated bits=0) by dublin.packetizer.com (8.14.5/8.14.5) with ESMTP id s24KCWj2015484 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 4 Mar 2014 15:12:32 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=packetizer.com; s=dublin; t=1393963954; bh=co/SuVaQKly/kQgeV8KMDBkJp9b8a3GPwkxmk6Fv2jc=; h=From:To:Subject:Cc:Date:Content-Type:In-Reply-To:Message-Id: Mime-Version:Reply-To; b=JiK/3Jyx2d0802AEAonSjm4Qr9XwrlbJ+2p3QXJ4/s239hKk+FG+9ZqDwrxM/A4kV unfdnGkzB1/sn1thpkz7nRniQCX0mnqt7nL2hKF3+qbQXI2gcCaukN3G8hvK52AiLh CnvpOL9PVzupY7NWgtv4QR0UOlGZaagophZaj5e8=
From: "Paul E. Jones" <paulej@packetizer.com>
To: Tim Bray <tbray@textuality.com>
Date: Tue, 04 Mar 2014 20:12:45 +0000
Content-Type: multipart/alternative; boundary="------=_MB4AF4E751-9671-4E95-937A-24BDF17C2F70"
In-Reply-To: <CAHBU6ivCDjZ2rLP6XZws2aUR8_c+5L6qL2RmHNEJCRkg2NS5rg@mail.gmail.com>
Message-Id: <em36b68433-9adf-4d3e-8035-a8c1b5b0e60f@sydney>
Mime-Version: 1.0
User-Agent: eM_Client/6.0.19861.0
Archived-At: http://mailarchive.ietf.org/arch/msg/json/pDbwQHbHHOLuwmEL9XExwEAfslc
Cc: Pete Resnick <presnick@qti.qualcomm.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org" <json@ietf.org>, Matthew Miller <mamille2@cisco.com>, Barry Leiba <barryleiba@computer.org>, rfc7158@schmorp.de, RFC Errata System <rfc-editor@rfc-editor.org>
Subject: Re: [Json] [Technical Errata Reported] RFC7158 (3907)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: "Paul E. Jones" <paulej@packetizer.com>
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: <http://www.ietf.org/mail-archive/web/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: Tue, 04 Mar 2014 20:13:02 -0000

Tim,

Yeah, I saw that.  However, I still think this only opens the door for 
future implementations to produce things that do not work reliably.  As 
Marc Lehmann rightfully pointed out (and, BTW, his Errata text appears 
to have disappeared), a serializer that is requested to serialize a 
series of integers like 1 and 999 might produce 1999.  Reading that back 
in, the single value 1999 would be read.  Likewise, a serializer might 
produce truefalse as output, but then fail when one tries to read that 
back.  One might argue to start all serialization with whitespace to 
avoid having values serialized adjacent to each other.  That would work, 
but unfortunate.

Maybe I missed it, but I could not see _why_ the change was made to this 
production.  What was wrong with allowing only an object or array?

Looking at some of the messages hanging off of the link Björn provided, 
I can see people are worried, too, about the BOM.  The previous text 
made it very clear how to determine whether the text is UTF-16LE or 
UTF-16BE, for example.  That text seems to have disappeared.  Is there a 
reason?  I think the same approach spelled out in Section 3 of RFC 4627 
would still work, no?

Paul

------ Original Message ------
From: "Tim Bray" <tbray@textuality.com>
To: "Paul E. Jones" <paulej@packetizer.com>
Cc: "Bjoern Hoehrmann" <derhoermi@gmx.net>; "RFC Errata System" 
<rfc-editor@rfc-editor.org>; "Pete Resnick" <presnick@qti.qualcomm.com>; 
"Paul Hoffman" <paul.hoffman@vpnc.org>; "json@ietf.org" <json@ietf.org>; 
"Matthew Miller" <mamille2@cisco.com>; "Barry Leiba" 
<barryleiba@computer.org>; rfc7158@schmorp.de
Sent: 3/4/2014 12:27:51 PM
Subject: Re: [Json] [Technical Errata Reported] RFC7158 (3907)

>On this issue, also please read the interoperability note in the 
>paragraph before the new production.
>
>
>On Tue, Mar 4, 2014 at 6:17 AM, Paul E. Jones <paulej@packetizer.com> 
>wrote:
>>I've not been following the list closely, as I thought this was more 
>>of an editorial exercise than anything else.  This is definitely more 
>>than editorial.  This could definitely break things and the commenter 
>>is right that there are instances where there could be 
>>misinterpretation.
>>
>>Why was it decided to change this:
>>
>>     JSON-text = object / array
>>
>>to
>>
>>     JSON-text = ws value ws
>>
>>Was there some misunderstanding of what 4627 said?
>>
>>Paul
>>
>>
>>------ Original Message ------
>>From: "Bjoern Hoehrmann" <derhoermi@gmx.net>
>>To: "RFC Errata System" <rfc-editor@rfc-editor.org>
>>Cc: presnick@qti.qualcomm.com; paul.hoffman@vpnc.org; json@ietf.org; 
>>tbray@textuality.com; mamille2@cisco.com; barryleiba@computer.org; 
>>rfc7158@schmorp.de; rfc-editor@rfc-editor.org
>>Sent: 3/2/2014 4:31:07 PM
>>Subject: Re: [Json] [Technical Errata Reported] RFC7158 (3907)
>>
>>>* RFC Errata System wrote:
>>>>Since RFC7158 breaks compatibility with the specifications, this 
>>>>should be
>>>>duly noted.
>>>
>>>It is in Appendix A., "Changes from RFC 4627":
>>>
>>>    o Changed the definition of "JSON text" so that it can be any JSON
>>>       value, removing the constraint that it be an object or array.
>>>
>>>Failing to note this in the Introduction is not ideal, but the errata
>>>system is not a good place to record that (holding it for document 
>>>up-
>>>date probably does not make sense, if and when the document does get
>>>updated, this particular issue will not require prominent notice).
>>>--
>>>Björn Höhrmann · mailto:bjoern@hoehrmann.de · 
>>>http://bjoern.hoehrmann.de
>>>Am Badedeich 7 · Telefon: +49(0)160/4415681 · 
>>>http://www.bjoernsworld.de
>>>25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · 
>>>http://www.websitedev.de/
>>>
>>>_______________________________________________
>>>json mailing list
>>>json@ietf.org
>>>https://www.ietf.org/mailman/listinfo/json
>>
>