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

Larry Masinter <masinter@adobe.com> Sat, 23 May 2015 22:54 UTC

Return-Path: <masinter@adobe.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 C4CD81A88E0 for <apps-discuss@ietfa.amsl.com>; Sat, 23 May 2015 15:54:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 1BGZij3b945y for <apps-discuss@ietfa.amsl.com>; Sat, 23 May 2015 15:54:15 -0700 (PDT)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0067.outbound.protection.outlook.com [65.55.169.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 85DD31A88F3 for <apps-discuss@ietf.org>; Sat, 23 May 2015 15:54:15 -0700 (PDT)
Received: from DM2PR02MB1323.namprd02.prod.outlook.com (25.161.142.22) by DM2PR02MB462.namprd02.prod.outlook.com (10.141.88.15) with Microsoft SMTP Server (TLS) id 15.1.166.22; Sat, 23 May 2015 22:54:14 +0000
Received: from DM2PR02MB1322.namprd02.prod.outlook.com (25.161.142.21) by DM2PR02MB1323.namprd02.prod.outlook.com (25.161.142.22) with Microsoft SMTP Server (TLS) id 15.1.166.22; Sat, 23 May 2015 22:54:12 +0000
Received: from DM2PR02MB1322.namprd02.prod.outlook.com ([25.161.142.21]) by DM2PR02MB1322.namprd02.prod.outlook.com ([25.161.142.21]) with mapi id 15.01.0166.017; Sat, 23 May 2015 22:54:12 +0000
From: Larry Masinter <masinter@adobe.com>
To: Nico Williams <nico@cryptonector.com>, Graham Klyne <gk@ninebynine.org>
Thread-Topic: [apps-discuss] [Technical Errata Reported] RFC6839 (4367)
Thread-Index: AQHQjxDY3b/TVMOMRkevrilc2B5EnJ19BSuAgAA3Y1aAAAHrgIAAAt4AgAGqQQCAAHpsxIAA1mIAgAUhnwCABGVCgA==
Date: Sat, 23 May 2015 22:54:10 +0000
Message-ID: <5FE7CED7-8DF6-43C5-8736-67DA281CAD45@adobe.com>
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> <20150520204641.GH19183@localhost>
In-Reply-To: <20150520204641.GH19183@localhost>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/0.0.0.150508
authentication-results: spf=none (sender IP is ) smtp.mailfrom=masinter@adobe.com;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [50.184.24.49]
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB1323; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB462;
x-microsoft-antispam-prvs: <DM2PR02MB132313441BB5F8AD03ECBD6EC3CF0@DM2PR02MB1323.namprd02.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520002)(3002001); SRVR:DM2PR02MB1323; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB1323;
x-forefront-prvs: 0585417D7B
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(106356001)(2950100001)(62966003)(122556002)(40100003)(77156002)(66066001)(15975445007)(36756003)(81156007)(102836002)(2900100001)(33656002)(68736005)(50986999)(82746002)(64706001)(97736004)(46102003)(4001540100001)(76176999)(83716003)(19580395003)(86362001)(92566002)(2656002)(93886004)(101416001)(5001960100002)(189998001)(54356999)(106116001)(105586002)(4001350100001)(83506001)(5001830100001)(99286002)(87936001)(5001860100001)(5001770100001)(104396002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB1323; H:DM2PR02MB1322.namprd02.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
Content-Type: text/plain; charset="utf-8"
Content-ID: <270E3920F4818E408D6EEAA80A572209@namprd02.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2015 22:54:11.0146 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB1323
X-OriginatorOrg: adobe.com
Archived-At: <http://mailarchive.ietf.org/arch/msg/apps-discuss/R2EN1eBAlwy6ADfvSto9Re7lHtY>
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: Sat, 23 May 2015 22:54:19 -0000

The error reported should be accepted as an erratum on RFC6939 which
says:

"When JSON is written in UTF-8, JSON is 8bit compatible ([RFC2045]).
When JSON is written in UTF-16 or UTF-32, JSON is binary ([RFC2045])."


which is false. RFC 2045 defines 8bit data

   "8bit data" refers to data that is all represented as relatively
    short lines with 998 octets or less between CRLF line separation
    sequences [RFC-821]), but octets with decimal values greater than 127
    may be used.  As with "7bit data" CR and LF octets only occur as part
    of CRLF line separation sequences and no NULs are allowed.



but UTF-8 JSON may well contain sequences that include CR or LF
octets not part of CRLF sequences, and may also contain more than
998 octets between CRLF line separation sequences.

Following http://www.ietf.org/iesg/statement/errata-processing.html:

It’s a matter of judgment whether this error COULD cause implementation
or deployment problems (someone assuming they could use 8bit for arbitrary
utf8 JSON?) but it seems possible. 

The change proposed makes a reference to RFC 7159 which is unnecessary,
it could just say “Encoding Considerations: binary”.

It seems like a tautology to have a media type which in general
requires “binary” but to note “If an instance of the media type
meets the requirements for 7bit or 8bit transport then 7bit or
8bit encoding is compatible”, since you could say that for any
binary media type.

 RFC 6838 “Media Type Registration” section 4.8 says
"Possible values of this [Encoding Considerations] field are:”

and lists 7bit, 8bit, binary, framed as the possible values.

Larry
—
http://larry.masinter.net