Re: JSON headers

Julian Reschke <julian.reschke@gmx.de> Tue, 12 July 2016 04:51 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 524B512B029 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jul 2016 21:51:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.208
X-Spam-Level:
X-Spam-Status: No, score=-8.208 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 WGv00wKhfdO7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jul 2016 21:51:13 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F550128B44 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 11 Jul 2016 21:51:12 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bMpav-0001Zn-Hs for ietf-http-wg-dist@listhub.w3.org; Tue, 12 Jul 2016 04:46:53 +0000
Resent-Date: Tue, 12 Jul 2016 04:46:53 +0000
Resent-Message-Id: <E1bMpav-0001Zn-Hs@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bMpar-0001Ya-DD for ietf-http-wg@listhub.w3.org; Tue, 12 Jul 2016 04:46:49 +0000
Received: from mout.gmx.net ([212.227.15.15]) by lisa.w3.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from <julian.reschke@gmx.de>) id 1bMpao-0001m5-9R for ietf-http-wg@w3.org; Tue, 12 Jul 2016 04:46:47 +0000
Received: from [192.168.178.20] ([93.217.93.203]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LaFmY-1ayBv60KDu-00m2s4; Tue, 12 Jul 2016 06:45:34 +0200
To: Carsten Bormann <cabo@tzi.org>
References: <8251.1468229350@critter.freebsd.dk> <e9a55629-656c-3b6a-3ac4-5fb7a109b2f0@gmx.de> <8739.1468234635@critter.freebsd.dk> <38b3e7bb-3202-f489-ff15-d4d545e13ca0@gmx.de> <8854.1468236033@critter.freebsd.dk> <326f0b93-dbd5-3dfb-2a35-d1bf084684b4@gmx.de> <9221.1468245597@critter.freebsd.dk> <aa9cee9c-d8e3-17ba-9fcd-e327575cd5a8@gmx.de> <9801.1468259070@critter.freebsd.dk> <15d27f23-6b51-1e8e-3f10-194c80570424@gmx.de> <20160711190107.GB9542@1wt.eu> <0e467573-4f68-80a5-14a4-5a63b41ac4d4@gmx.de> <57841F4A.30901@tzi.org>
Cc: Willy Tarreau <w@1wt.eu>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Yanick Rochon <yanick.rochon@gmail.com>, Phil Hunt <phil.hunt@oracle.com>, HTTP Working Group <ietf-http-wg@w3.org>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <57e2c1b6-749f-c697-5c92-15eeb44b303b@gmx.de>
Date: Tue, 12 Jul 2016 06:45:33 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <57841F4A.30901@tzi.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:/chUG+EQEpybJoNCxQEcLSPDVmf5HiYvU4QGN9ES+TciUBQO04w cMDWtTLWghBVFKr+hfsauaO5eXD2zACLLEadKIv913/JuNzsVZx6gb51O+o/08z7WWM7Ny2 HFHmnT/oQc9cLEC244nkIFbNSzILIx50msgRIVzK5VQZlK1zdkzh5aG00gJz4utVesdZt7J w0hGfGM58f4Ji0Apu4eOQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:tROmDuQp/J0=:XXt5amdcYDvdfrPFIo2H4H 20F1lOLRh2h7ad4jqwHeAPMz19d8xiqd3T4KBhePpVUFdcBvO7qQ36EHLqeb2TVQ92Qq8W7AF +fxC3rPK6Wu2lIBw4//gpgrCzeLZw1hUlaNKGH2cMSz0RGv83+dy5Ae2efl51UE0QrZHmSuBw VAgoku0t1WcZwp+VW4F8JKliExMa6Ixr4NjWEN2/Yv3XlG7Fpl5xMDibaIzCshfXVmdLJDBOF 0I7IVAvMAuwsL8uT4DzO1Zdg+4hTU5dm5kar7lDq/DfYrfKpbqAK8z8EbzLkylBBPqBtEXKQ4 rHxfDOFzQrzbebU+MHycl9HPGsJMK5O5G0y81H0y88vGYYecdaIPRDzzk/tvTFwpLicF8mk5t Ep2/jTKiuY22idy/FLK3iHKTK0ulB98o0h8OzlBKZcS9Ueyn72USfYj/tMR7qCVpB4wjNUbuk cGMP4g3otHjT39kLq8P5QZyrO7x01wy5mVAfsxolaMoEM4T6ezD9QINXjuetYQ2XxXXBGOWzW PMizb1VTGOL9wNhPfd9q1yK47JG8UmO7F7cTH7cog5MHsw6LAEG9jjGvkQKlAyPILevzh3R3o e7V9y1FnHMvaBLG1ZvX6UjDKBOlkEnv8YdBhluZ8J5XuI2FGvFXoy57kk7hhneL7q/nb7yc+h BbSao0MPgGsHt0hOkZOaK22k3BU+Wl72YMU1/2ygEtmvy063yfK7A7JgN0tw4jyXowEQ1ndXg OSZCLxNZLgr4ECfjw7CRFPgtMf0ZZsKDqbYPD2lBN7NtjR6tvakGGQQxqUdidPEnIFxPei1SZ fiPW/1Y
Received-SPF: pass client-ip=212.227.15.15; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-6.7
X-W3C-Hub-Spam-Report: AWL=-0.077, BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1bMpao-0001m5-9R 4a288f5dd222458e72f48a70330d1439
X-Original-To: ietf-http-wg@w3.org
Subject: Re: JSON headers
Archived-At: <http://www.w3.org/mid/57e2c1b6-749f-c697-5c92-15eeb44b303b@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31915
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2016-07-12 00:35, Carsten Bormann wrote:
>> Inside a JSON *object*, the wire format allows multiple instances of the
>> same key (member name), and the recipient behavior for these cases is
>> undefined.
>
> That is a rather liberal use of "allows".  It definitely not "allowed",
> but it is sure *possible* to send malformed JSON.

It is allowed by the structure of the *wire format*.

The *specification* has a "SHOULD have unique names", but then, that's 
only a SHOULD (exactly because we know we can't rely on it, otherwise we 
wouldn't have the prose about what recipients can do with it).

 > ...

Best regards, Julian