Re: [Art] [Technical Errata Reported] RFC6902 (4787)

Mark Nottingham <mnot@mnot.net> Fri, 02 September 2016 01:48 UTC

Return-Path: <mnot@mnot.net>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B6F2512D815 for <art@ietfa.amsl.com>; Thu, 1 Sep 2016 18:48:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level:
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 SszckLPpBxKk for <art@ietfa.amsl.com>; Thu, 1 Sep 2016 18:48:36 -0700 (PDT)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (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 3590B12D74E for <apps-discuss@ietf.org>; Thu, 1 Sep 2016 18:48:34 -0700 (PDT)
Received: from [192.168.3.104] (unknown [124.189.98.244]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 87FD222E1FA; Thu, 1 Sep 2016 21:48:23 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20160825182934.6AC17B80E5D@rfc-editor.org>
Date: Fri, 02 Sep 2016 11:48:20 +1000
Content-Transfer-Encoding: quoted-printable
Message-Id: <22A1E621-B23F-4B1A-AF95-2D5A941E38D6@mnot.net>
References: <20160825182934.6AC17B80E5D@rfc-editor.org>
To: RFC Errata System <rfc-editor@rfc-editor.org>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/4BzRZLPDpvX9zhTDfnZcf_zFvNc>
X-Mailman-Approved-At: Fri, 02 Sep 2016 08:16:11 -0700
Cc: Ben Campbell <ben@nostrum.com>, apps-discuss@ietf.org, aamelnikov@fastmail.fm, Alissa Cooper <alissa@cooperw.in>, d.frey@gmx.de, superuser@gmail.com, pbryan@anode.ca
Subject: Re: [Art] [Technical Errata Reported] RFC6902 (4787)
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Sep 2016 01:48:39 -0000

This isn't an errata; it would require gaining consensus and updating the document. See also: https://github.com/json-patch/json-patch2

REJECT or HOLD FOR DOCUMENT UPDATE, I think.


> On 26 Aug 2016, at 4:29 AM, RFC Errata System <rfc-editor@rfc-editor.org> wrote:
> 
> The following errata report has been submitted for RFC6902,
> "JavaScript Object Notation (JSON) Patch".
> 
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata_search.php?rfc=6902&eid=4787
> 
> --------------------------------------
> Type: Technical
> Reported by: Daniel Frey <d.frey@gmx.de>
> 
> Section: 4.2
> 
> Original Text
> -------------
> The "remove" operation removes the value at the target location.
> 
> The target location MUST exist for the operation to be successful.
> 
> For example:
> 
> { "op": "remove", "path": "/a/b/c" }
> 
> If removing an element from an array, any elements above the
> specified index are shifted one position to the left.
> 
> 
> Corrected Text
> --------------
> The "remove" operation removes the value at the target location.
> 
> The target location MUST exist for the operation to be successful.
> 
> For example:
> 
> { "op": "remove", "path": "/a/b/c" }
> 
> If removing an element from an array, any elements above the
> specified index are shifted one position to the left.
> 
> The target location MUST NOT be a reference to the root. It is an
> error in this document:
> 
> { "op": "remove", "path": "" }
> 
> 
> Notes
> -----
> The semantics of { "op": "remove", "path": "" } are never specified. If we allow to remove the root element, what would the result be? It would no longer be a valid JSON document, hence I propose to explicitly require the path of the "remove" operation to not reference the root.
> 
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party (IESG)
> can log in to change the status and edit the report, if necessary. 
> 
> --------------------------------------
> RFC6902 (draft-ietf-appsawg-json-patch-10)
> --------------------------------------
> Title               : JavaScript Object Notation (JSON) Patch
> Publication Date    : April 2013
> Author(s)           : P. Bryan, Ed., M. Nottingham, Ed.
> Category            : PROPOSED STANDARD
> Source              : Applications Area Working Group APP
> Area                : Applications
> Stream              : IETF
> Verifying Party     : IESG
> 

--
Mark Nottingham   https://www.mnot.net/