Re: JSON headers

Yanick Rochon <yanick.rochon@gmail.com> Mon, 11 July 2016 18:07 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 666D912D0DA for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jul 2016 11:07:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.307
X-Spam-Level:
X-Spam-Status: No, score=-8.307 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 VpVwahrqj9R4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 11 Jul 2016 11:07:45 -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 D72BB12D5E7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 11 Jul 2016 11:07:37 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1bMfXq-0001rp-Kl for ietf-http-wg-dist@listhub.w3.org; Mon, 11 Jul 2016 18:03:02 +0000
Resent-Date: Mon, 11 Jul 2016 18:03:02 +0000
Resent-Message-Id: <E1bMfXq-0001rp-Kl@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 <yanick.rochon@gmail.com>) id 1bMfXm-0001qu-LD for ietf-http-wg@listhub.w3.org; Mon, 11 Jul 2016 18:02:58 +0000
Received: from mail-vk0-f53.google.com ([209.85.213.53]) by lisa.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <yanick.rochon@gmail.com>) id 1bMfXi-0002GN-QW for ietf-http-wg@w3.org; Mon, 11 Jul 2016 18:02:57 +0000
Received: by mail-vk0-f53.google.com with SMTP id o63so66832237vkg.1 for <ietf-http-wg@w3.org>; Mon, 11 Jul 2016 11:02:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=k+QgyQFO0Vbj5Y5vzAQwbw56HcZeOyIBTZ8H/GJRP60=; b=gfjD9/YOIqUrqLRjXnTBMi7tmwg69l8H6I3UVJUtq3j4RCXXOAFrZqUBqj/rkXaudU VRajfNJ6PLb53/tTpXyX1XanqgasjhwwHOl3jmVE9nuM5ScxbaTOSEVE7F5qjieaOgtN BX0NaLiAox5ukBYfM07QaE5AUmR2/bI37braIgUU0rwo1R0qFwD0ZISRj4cKh+ZuSjpN 5g+yRmcgINfUtUytXuKJOPFYs4I0RuTOiD3iUHuN2tqBJ/EmVAMXYPxEyw3zjnHAZWWZ MyfD6qiRITvf4RI7jSmJbAeJ7Jx3gsf4roccS2IJUGtGd2fiB5a9z2zfwq5J2T3KDTSU F3NA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=k+QgyQFO0Vbj5Y5vzAQwbw56HcZeOyIBTZ8H/GJRP60=; b=mf7vqLadKl+ImoMuDqXTpZ+4ce7E12rebPF6OetoHxa3qIuOdgFQlMKTJ08xaKI4NE N81OzEkzjxkIZwdiQGPu48xP8okBOrPEOXm0UOnFpctDbKKlLw+Nqgxj0LsgSa8Ts6Kz VXZ4671K0EFl2ZmUITXPvYpf4I9Lp2Eomps9UgklRLc/nVkwERlo9VDnEN23aMESyUlZ xDfP8dko1kB+B0sk8k6Tw1W2/w4scDvBxrsHPZ2JzjYfu1dTFZeTE818AZmULVwSQcCw zdKTUv+oMg1tRky38uqcBmxltG3uw2DtYuFWNlAoK8FpdwYMr8H478u/fY5hAfbsTl3Q HGng==
X-Gm-Message-State: ALyK8tImrtptUwm+deCykzrZu9LM2SAdc9HgkYuJShfZmpeeaXdt/5ql/xJGx+3InGfO+fYKo+jQ8PfTI35XbQ==
X-Received: by 10.176.1.176 with SMTP id 45mr7963631ual.119.1468260148858; Mon, 11 Jul 2016 11:02:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.105.75 with HTTP; Mon, 11 Jul 2016 11:02:09 -0700 (PDT)
In-Reply-To: <9801.1468259070@critter.freebsd.dk>
References: <74180.1468000149@critter.freebsd.dk> <A17D3EFD-A935-4971-BCF6-DC9D38302CAD@oracle.com> <564a72e8-b9d3-1f9c-5982-48f2b07272e5@greenbytes.de> <3924.1468137899@critter.freebsd.dk> <683f5f58-6046-d9fb-cc75-d0ab3890ce23@greenbytes.de> <4105.1468141779@critter.freebsd.dk> <5cdf0fa8-063c-7eaa-a9e3-fb6db7417254@gmx.de> <4213.1468143913@critter.freebsd.dk> <94e4a5c2-3465-fef3-6221-d9f4fcccb5fa@gmx.de> <4324.1468145426@critter.freebsd.dk> <CAB0No9kf6gje3Tc+impphV5tUHjksCkL1PJ1YAgNjXO+tLq=XA@mail.gmail.com> <176d58df-debf-e660-edf7-7d686c926ef6@gmx.de> <5939.1468189218@critter.freebsd.dk> <40e62f5c-9fe4-35c0-d986-c01fb63f6b4e@gmx.de> <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>
From: Yanick Rochon <yanick.rochon@gmail.com>
Date: Mon, 11 Jul 2016 14:02:09 -0400
Message-ID: <CAB0No9mkFB7FS89_roz3CDDfASGwEN-8n_6kP040zEo_b5Jh_A@mail.gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: Julian Reschke <julian.reschke@gmx.de>, Phil Hunt <phil.hunt@oracle.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113ec7849c5bac05375ff43b"
Received-SPF: pass client-ip=209.85.213.53; envelope-from=yanick.rochon@gmail.com; helo=mail-vk0-f53.google.com
X-W3C-Hub-Spam-Status: No, score=-5.5
X-W3C-Hub-Spam-Report: AWL=-0.817, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1bMfXi-0002GN-QW fd06e9175b3c9cb07c13cbcc5f2ea76a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: JSON headers
Archived-At: <http://www.w3.org/mid/CAB0No9mkFB7FS89_roz3CDDfASGwEN-8n_6kP040zEo_b5Jh_A@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/31904
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 11 July 2016 at 13:44, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote:

> --------
> In message <aa9cee9c-d8e3-17ba-9fcd-e327575cd5a8@gmx.de>, Julian Reschke
> writes
> :
>
> >b) relying on the uniqueness is a problem anyway (due to how JSON works).
>
> Sorry, but I have no idea what you are saying there...
>
>
I believe he is saying that standardized JSON parsers do not care for
duplication in JSON properties, and simply overwrite any previous values,
which is as defined in the specs and an expected behaviour, which does not
resolve the issue at all.

I personally would favor a strict enforcement, where a duplicated key
should generate errors, but this is agains the specs...