Re: [apps-discuss] json-pointer #5 - semantics [was: Feedback on draft-ietf-appsawg-json-pointer-00]

"Paul C. Bryan" <pbryan@anode.ca> Wed, 06 June 2012 20:56 UTC

Return-Path: <pbryan@anode.ca>
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 149AF21F861A for <apps-discuss@ietfa.amsl.com>; Wed, 6 Jun 2012 13:56:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.331
X-Spam-Level:
X-Spam-Status: No, score=-2.331 tagged_above=-999 required=5 tests=[AWL=0.267, BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 cNXFb7uap-05 for <apps-discuss@ietfa.amsl.com>; Wed, 6 Jun 2012 13:56:13 -0700 (PDT)
Received: from maple.anode.ca (maple.anode.ca [72.14.183.184]) by ietfa.amsl.com (Postfix) with ESMTP id 9C42E21F85F4 for <apps-discuss@ietf.org>; Wed, 6 Jun 2012 13:56:12 -0700 (PDT)
Received: from [10.125.20.55] (unknown [209.52.95.1]) by maple.anode.ca (Postfix) with ESMTPSA id C37C36471; Wed, 6 Jun 2012 20:56:11 +0000 (UTC)
From: "Paul C. Bryan" <pbryan@anode.ca>
To: Martin Thomson <martin.thomson@gmail.com>
In-Reply-To: <CABkgnnVhBo7v24D4FvNj-ozDk-hx5p3v9t7xhcY0j_RKOEVReA@mail.gmail.com>
References: <4F4FD8A5.6010603@cloudmark.com> <1330638350.2531.11.camel@neutron> <4F514AF9.5010506@cloudmark.com> <9452079D1A51524AA5749AD23E003928077013@exch-mbx901.corp.cloudmark.com> <01173171-110F-4FBE-993A-E858B51E9068@mnot.net> <9452079D1A51524AA5749AD23E00392813E630@exch-mbx901.corp.cloudmark.com> <CABkgnnVhBo7v24D4FvNj-ozDk-hx5p3v9t7xhcY0j_RKOEVReA@mail.gmail.com>
Content-Type: multipart/alternative; boundary="=-Ynz2C1YeSKYvzVGY1LjS"
Date: Wed, 06 Jun 2012 13:56:06 -0700
Message-ID: <1339016166.24342.1.camel@pbryan-wsl.internal.salesforce.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.3
Cc: IETF Apps Discuss <apps-discuss@ietf.org>, "Murray S. Kucherawy" <msk@cloudmark.com>
Subject: Re: [apps-discuss] json-pointer #5 - semantics [was: Feedback on draft-ietf-appsawg-json-pointer-00]
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: Wed, 06 Jun 2012 20:56:14 -0000

Can you elaborate on what the utility is of deciding what a pointer
points at without a concrete document to resolve it to?

Paul

On Wed, 2012-06-06 at 08:22 -0700, Martin Thomson wrote:

> On 31 May 2012 09:42, Murray S. Kucherawy <msk@cloudmark.com> wrote:
> > I think the right approach is to say explicitly in pointer that it's left to the application using pointer to decide whether a match failure is an error or should be handled in some other way.  There are some cases where one might abort totally, or might create the path being referenced.  Patch could, for example, abort on a "change" instruction that references a nonexistent token, while "add" referencing a nonexistent token could create the intermediate objects needed to contain the new token.
> 
> I disagree with what appears to be an emerging consensus, for one
> reason.  There is an inherent ambiguity in pointers that requires a
> concrete document to resolve.  Numerical indices can be used in two
> contexts:
> 
>   /1 => "foo"
>   { "1": "foo" }
>   [ "foo" ]
> 
> Without a concrete document, I can't decide what the pointer "points" at.
> 
> That said, there is no stopping someone from going off-spec.  But I'd
> prefer to keep it just that: off-spec.
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss