Re: [apps-discuss] JSON patch: "test" operation

"Paul C. Bryan" <paul.bryan@forgerock.com> Thu, 01 December 2011 22:45 UTC

Return-Path: <paul.bryan@forgerock.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E4D201F0C7C for <apps-discuss@ietfa.amsl.com>; Thu, 1 Dec 2011 14:45:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.598
X-Spam-Level:
X-Spam-Status: No, score=-6.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m97aMt7anYlX for <apps-discuss@ietfa.amsl.com>; Thu, 1 Dec 2011 14:45:45 -0800 (PST)
Received: from eu1sys200aog101.obsmtp.com (eu1sys200aog101.obsmtp.com [207.126.144.111]) by ietfa.amsl.com (Postfix) with SMTP id 773A11F0C74 for <apps-discuss@ietf.org>; Thu, 1 Dec 2011 14:45:44 -0800 (PST)
Received: from mail-gy0-f170.google.com ([209.85.160.170]) (using TLSv1) by eu1sys200aob101.postini.com ([207.126.147.11]) with SMTP ID DSNKTtgDhHtb26o9ad3zyEnGkuPRgvh1hXcv@postini.com; Thu, 01 Dec 2011 22:45:44 UTC
Received: by mail-gy0-f170.google.com with SMTP id g16so4384079ghb.1 for <apps-discuss@ietf.org>; Thu, 01 Dec 2011 14:45:24 -0800 (PST)
Received: by 10.101.134.30 with SMTP id l30mr2265728ann.109.1322779523957; Thu, 01 Dec 2011 14:45:23 -0800 (PST)
Received: from [192.168.1.3] (S0106a021b762dbb3.vf.shawcable.net. [174.1.40.184]) by mx.google.com with ESMTPS id n5sm12043380yhk.1.2011.12.01.14.45.22 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Dec 2011 14:45:22 -0800 (PST)
Message-ID: <1322779521.1958.1.camel@neutron>
From: "Paul C. Bryan" <paul.bryan@forgerock.com>
To: IETF Apps Discuss <apps-discuss@ietf.org>
Date: Thu, 01 Dec 2011 14:45:21 -0800
In-Reply-To: <37E09A53-E9F4-45D2-BB8F-79655BECDBB2@mnot.net>
References: <4ED64A26.5030003@gmx.de> <BC564D94-6D00-4D63-863A-8AAD00E57B3A@tzi.org> <4ED77513.3070506@gmx.de> <6E443D75-D1AC-451F-9B17-115C9A6C7696@mnot.net> <4ED7F8C2.9030804@gmx.de> <37E09A53-E9F4-45D2-BB8F-79655BECDBB2@mnot.net>
Content-Type: multipart/alternative; boundary="=-NcxfSuvSV7YZxMAR+Da0"
X-Mailer: Evolution 3.0.3-2
Mime-Version: 1.0
Subject: Re: [apps-discuss] JSON patch: "test" operation
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Dec 2011 22:45:46 -0000

Indeed, RFC 5789 should make it unambiguous for HTTP PATCH. For other
uses of JSON Patch, it would be implementation-specific. This is why the
"fails to complete" verbiage is there...

Paul

On Fri, 2011-12-02 at 09:12 +1100, Mark Nottingham wrote:

> On 02/12/2011, at 8:59 AM, Julian Reschke wrote:
> 
> > On 2011-12-01 22:51, Mark Nottingham wrote:
> >> I thought that at first too, but upon reflection I don't see how they're different from other directives -- other ones can fail too.
> >> ...
> > 
> > So whether the patch operation is atomic or not is implementation dependent?
> > 
> > Or are we saying the server needs to be able to deal with the operation being aborted in process, and roll back?
> > 
> > (just want to see that clarified)
> 
> RFC5789, section 2:
> 
> >    The server MUST apply the entire set of changes atomically and never
> >    provide (e.g., in response to a GET during this operation) a
> >    partially modified representation.  If the entire patch document
> >    cannot be successfully applied, then the server MUST NOT apply any of
> >    the changes.  The determination of what constitutes a successful
> >    PATCH can vary depending on the patch document and the type of
> >    resource(s) being modified.  For example, the common 'diff' utility
> >    can generate a patch document that applies to multiple files in a
> >    directory hierarchy.  The atomicity requirement holds for all
> >    directly affected files. 
> 
> 
> 
> 
> 
> --
> Mark Nottingham   http://www.mnot.net/
> 
> 
> 
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss