Re: [apps-discuss] Review of draft-ietf-appsawg-json-pointer

"Manger, James H" <James.H.Manger@team.telstra.com> Fri, 16 November 2012 03:56 UTC

Return-Path: <James.H.Manger@team.telstra.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 E94A521E803F for <apps-discuss@ietfa.amsl.com>; Thu, 15 Nov 2012 19:56:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.741
X-Spam-Level:
X-Spam-Status: No, score=-0.741 tagged_above=-999 required=5 tests=[AWL=0.160, BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xmI+OHAiUZiV for <apps-discuss@ietfa.amsl.com>; Thu, 15 Nov 2012 19:56:12 -0800 (PST)
Received: from ipxbno.tcif.telstra.com.au (ipxbno.tcif.telstra.com.au [203.35.82.204]) by ietfa.amsl.com (Postfix) with ESMTP id 356D521E802E for <apps-discuss@ietf.org>; Thu, 15 Nov 2012 19:56:10 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.83,261,1352034000"; d="scan'208";a="101708937"
Received: from unknown (HELO ipccni.tcif.telstra.com.au) ([10.97.216.208]) by ipobni.tcif.telstra.com.au with ESMTP; 16 Nov 2012 14:56:05 +1100
X-IronPort-AV: E=McAfee;i="5400,1158,6897"; a="99749123"
Received: from wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) by ipccni.tcif.telstra.com.au with ESMTP; 16 Nov 2012 14:56:05 +1100
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) with mapi; Fri, 16 Nov 2012 14:56:05 +1100
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>, "apps-discuss@ietf.org Discuss" <apps-discuss@ietf.org>
Date: Fri, 16 Nov 2012 14:56:04 +1100
Thread-Topic: [apps-discuss] Review of draft-ietf-appsawg-json-pointer
Thread-Index: Ac3DRU+qCGHRhIzkTj6BYcdKrkOG+gAZkinw
Message-ID: <255B9BB34FB7D647A506DC292726F6E115006C7A5C@WSMSG3153V.srv.dir.telstra.com>
References: <D8B6B887-7206-4197-B78D-7E2B38A20EF9@vpnc.org>
In-Reply-To: <D8B6B887-7206-4197-B78D-7E2B38A20EF9@vpnc.org>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [apps-discuss] Review of draft-ietf-appsawg-json-pointer
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: Fri, 16 Nov 2012 03:56:13 -0000

> - One of the security considerations is too limited.
>    Note that JSON pointers can contain the NUL (Unicode U+0000)
>    character, which may not be representable in all programming
>    languages.
> The same is true for all control characters, and for some programming
> languages, all non-ASCII characters. Proposed rewording:
>    Note that JSON pointers can contain the NUL (Unicode U+0000)
>    character, control characters, non-ASCII characters, and so
>    on. These characters may not be representable in all programming
>    languages.

The issue with NUL is that you need to be careful not to misinterpret it as an end-of-string marker. How about:

   Note that JSON pointers can contain the NUL (Unicode U+0000)
   character. Care is needed not to misinterpret this character
   in programming languages that use NUL to mark the end of a string.


And a reminder that there was one other just-before-WGLC comment: disallowing unnecessary leading 0's (eg allow /7, but not /007, to point into an array).

--
James Manger