Re: [apps-discuss] [Technical Errata Reported] RFC6839 (4367)

Nico Williams <nico@cryptonector.com> Wed, 20 May 2015 20:46 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 58F1B1A90DB for <apps-discuss@ietfa.amsl.com>; Wed, 20 May 2015 13:46:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.034
X-Spam-Level: *
X-Spam-Status: No, score=1.034 tagged_above=-999 required=5 tests=[BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=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 CDVom7HTeys8 for <apps-discuss@ietfa.amsl.com>; Wed, 20 May 2015 13:46:45 -0700 (PDT)
Received: from homiemail-a105.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 6A0511A90DD for <apps-discuss@ietf.org>; Wed, 20 May 2015 13:46:45 -0700 (PDT)
Received: from homiemail-a105.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a105.g.dreamhost.com (Postfix) with ESMTP id 2D3752005E808; Wed, 20 May 2015 13:46:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=P4T9zNVVoyRY0n tIDJ0XgwEd+1I=; b=pZG/wVtfOyz0BDUCaLKiiMZUPsEqB9CizIhUmHceX936xj pmIObAl+yvhEzZDFXkO9h26FQItkDl1t1OEqTQW0ogqbTGo8xdlv2N54BayN5nAn 8N9of+3bORY4pmNCN1+410JDbaSocGZFBpX6RSoQgH4ylxVdBg9uJURAY+NAA=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a105.g.dreamhost.com (Postfix) with ESMTPA id 898912005E806; Wed, 20 May 2015 13:46:43 -0700 (PDT)
Date: Wed, 20 May 2015 15:46:42 -0500
From: Nico Williams <nico@cryptonector.com>
To: Graham Klyne <gk@ninebynine.org>
Message-ID: <20150520204641.GH19183@localhost>
References: <20150515131052.8E76D180092@rfc-editor.org> <CALaySJ++ptrFqjjC=mRC9zH8ns18bermy2YAfYYLx5OtX0Zdqw@mail.gmail.com> <CAPQd5oTZZKimSWcQaLBeHmq7o-npxvL8KM3HRQPW9JQPHs_ONw@mail.gmail.com> <55562081.6070504@att.com> <CAPQd5oRws8pQo7qR6xG2E0_=4vka-ymQO8sb_gAOup5_56F11g@mail.gmail.com> <555624A6.5050505@att.com> <55578A38.2010609@ninebynine.org> <01PM1VPYNTIY0000AQ@mauve.mrochek.com> <5558A4C0.9050900@ninebynine.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <5558A4C0.9050900@ninebynine.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/o8q2ShqatAm7tbF32kOUK9ZUsWk>
Cc: Barry Leiba <barryleiba@computer.org>, Ned Freed <ned.freed@mrochek.com>, "tony+sss@maillennium.att.com" <tony+sss@maillennium.att.com>, "apps-discuss@ietf.org" <apps-discuss@ietf.org>, RFC Errata System <rfc-editor@rfc-editor.org>
Subject: Re: [apps-discuss] [Technical Errata Reported] RFC6839 (4367)
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
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, 20 May 2015 20:46:46 -0000

On Sun, May 17, 2015 at 03:25:04PM +0100, Graham Klyne wrote:
> I raised the point because I've found that I can construct XML in a
> way that avoids very long lines (YMMV).  But I've noticed in my work
> with JSON that there is no way to encode long string values over
> multiple lines (even when the strings themselves are multiline
> values).

+1.  Binary is the correct thing to say for any JSON-using protocol
unless the schema used allows one to ensure that UTF-8-encoded JSON
texts have "lines" no longer than 1000 bytes -- but why bother?

> And, as noted, https://tools.ietf.org/html/rfc7159#section-11 just
> says "binary" for JSON, which seems OK to me, but as you say 7bit or
> 8bit might be OK for some JSON data.

Right, and that's true, but not often possible to ensure.

> (I suspect that in practice these concerns don't arise as 7bit and
> 8bit are primarily email concerns, and my experience is that JSON is
> mostly used in HTTP exchanges.)

Agreed.  This is one of those how many angels can dance on a pin head
kind of debates.  The erratum could be accepted or rejected, and it
wouldn't make a difference.  Since the MIME registration exists outside
the RFC, I think it's better to correct it than to not, and note that
it's not necessary to correct the RFC to correct the registration.  Add
some text discussing the interop considerations if you like.

Nico
--