Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2CCC894B1 for ; Wed, 14 Dec 2011 14:05:13 +0000 (UTC) Received: (qmail 89836 invoked by uid 500); 14 Dec 2011 14:05:12 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 89758 invoked by uid 500); 14 Dec 2011 14:05:12 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 89720 invoked by uid 99); 14 Dec 2011 14:05:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 14:05:12 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fmeschbe@adobe.com designates 64.18.1.189 as permitted sender) Received: from [64.18.1.189] (HELO exprod6og105.obsmtp.com) (64.18.1.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 14:05:02 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob105.postini.com ([64.18.5.12]) with SMTP ID DSNKTuis+F6f2MVSGfYhX4gehy46OelRKfUz@postini.com; Wed, 14 Dec 2011 06:04:41 PST Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id pBEE2sEt009192 for ; Wed, 14 Dec 2011 06:02:54 -0800 (PST) Received: from nacas03.corp.adobe.com (nacas03.corp.adobe.com [10.8.189.121]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id pBEE4dL7014924 for ; Wed, 14 Dec 2011 06:04:39 -0800 (PST) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nacas03.corp.adobe.com (10.8.189.121) with Microsoft SMTP Server (TLS) id 8.3.192.1; Wed, 14 Dec 2011 06:04:39 -0800 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Wed, 14 Dec 2011 14:04:37 +0000 From: Felix Meschberger To: "dev@jackrabbit.apache.org" Date: Wed, 14 Dec 2011 14:04:37 +0000 Subject: Re: [Jackrabbit Wiki] Update of "Jsop" by stefan Thread-Topic: [Jackrabbit Wiki] Update of "Jsop" by stefan Thread-Index: Acy6aVCg2odpiLCQSIqO5L9ouxi5lQ== Message-ID: <5927EAB7-5BF6-428E-8454-F47B560272C5@adobe.com> References: In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Am 14.12.2011 um 14:10 schrieb Thomas Mueller: > Hi, >=20 > In my view, we should try to stay compatible with DavEx JSOP, except for > those cases where DavEx JSOP is problematic: >=20 > - I think it didn't require paths to be double quoted? >=20 > - Move operations were defined as > "/from": "/to" [#before|#after], whic= h > is problematic from a parser point of view, because optional token at the > end of "logical line" are ambiguous (the token might belong to the next > logical line). >=20 >> Sling JSOP >=20 > I believe the 'diff' part within Sling isn't implemented yet, right? I > guess The Sling JSOP should be compatible with what we do for Jackrabbit = 3 > as much as possible, but the use cases might be slightly different. Absolutely. I tend to think any Sling JSOP implementation would best reuse = an existing parser instead of writing its own stuff. >=20 >> IETF JSON Diff >=20 > I think our work will influence IETF JSON Diff. The "test" and "move" > operation were already added, I guess the "copy" operations will be added > as well, because it simply makes sense to have such an operation. >=20 > I think the standards are still ambiguous in a few areas. One is the exac= t > specification of a "path" and "path element". I saw that > draft-pbryan-json-patch-02.txt assumes a number at the end of a path is a= n > array index: "Moving an Array Element" - "/foo/1" refers to the second > element in the array "/foo". That could mean number are not allowed as > path elements (there could be no node called "/foo/1"). Another problem w= e > ran into is adding a 'options mechanism' in the getNodes call. One idea i= s > to append ";hash" to the path if the server should include the content > hash for each node. That means getNode("/foo;hash") would return the node > "/foo", together with the ":hash" property (in our implementation). Is this IETF draft or your extension ? Anyways, it feels extremely strange. Regards Felix=