Re: [T2TRG] draft-hartke-t2trg-ciri-00 review

Klaus Hartke <hartke@projectcool.de> Mon, 21 January 2019 20:38 UTC

Return-Path: <hartke@projectcool.de>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A73F81288BD for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 12:38:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_FAIL=0.001] autolearn=no 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 i9u74Xrast9M for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 12:38:33 -0800 (PST)
Received: from wp382.webpack.hosteurope.de (wp382.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8597::]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82F19124408 for <T2TRG@irtf.org>; Mon, 21 Jan 2019 12:38:33 -0800 (PST)
Received: from mail-qt1-f172.google.com ([209.85.160.172]); authenticated by wp382.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1glgL0-0002rg-6i; Mon, 21 Jan 2019 21:38:30 +0100
Received: by mail-qt1-f172.google.com with SMTP id t33so24999515qtt.4 for <T2TRG@irtf.org>; Mon, 21 Jan 2019 12:38:30 -0800 (PST)
X-Gm-Message-State: AJcUukdsCGP5qbzWDBW9TzJmtrjm0jBA6ytHf6rxEJUI24krtkzOSV3/ MO1js8D/Je7hkrO7WItl4D3MoufAX+lPzTszfhQ=
X-Google-Smtp-Source: ALg8bN4f34KutrFZibpoM8ICICfOPlBdHJLNOwTIwkJkwSYyagbv5BR1TZHkKcv3wRlzgaa1771ZaavtOHrdBqhZoPE=
X-Received: by 2002:aed:35c5:: with SMTP id d5mr28125169qte.212.1548103109148; Mon, 21 Jan 2019 12:38:29 -0800 (PST)
MIME-Version: 1.0
References: <58aa0ae4-b3fe-abf7-9bda-4908ef0b3fd7@ericsson.com> <CY4PR21MB0168C83AF295761F73FCDF7FA39F0@CY4PR21MB0168.namprd21.prod.outlook.com>
In-Reply-To: <CY4PR21MB0168C83AF295761F73FCDF7FA39F0@CY4PR21MB0168.namprd21.prod.outlook.com>
From: Klaus Hartke <hartke@projectcool.de>
Date: Mon, 21 Jan 2019 21:37:53 +0100
X-Gmail-Original-Message-ID: <CAAzbHvY-XeyVEvhWE2WJH8Jy6W-NkRw5JmFpBkCkA6RiDa_ncA@mail.gmail.com>
Message-ID: <CAAzbHvY-XeyVEvhWE2WJH8Jy6W-NkRw5JmFpBkCkA6RiDa_ncA@mail.gmail.com>
To: Dave Thaler <dthaler=40microsoft.com@dmarc.ietf.org>
Cc: Ari Keränen <ari.keranen@ericsson.com>, "draft-hartke-t2trg-ciri@ietf.org" <draft-hartke-t2trg-ciri@ietf.org>, "T2TRG@irtf.org" <T2TRG@irtf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-bounce-key: webpack.hosteurope.de; hartke@projectcool.de; 1548103113; 3175c1c4;
X-HE-SMSGID: 1glgL0-0002rg-6i
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/QyETdZsw4rf0qBgkThtDhDzgKNg>
Subject: Re: [T2TRG] draft-hartke-t2trg-ciri-00 review
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IRTF Thing-to-Thing Research Group <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Jan 2019 20:38:36 -0000

Hi Dave,

thanks for bringing up this interesting point.

The draft essentially describes a CBOR variant of the way CoAP
serializes the Request URI: The URI is split into its components (+
the path component into its segments) and each component becomes one
"option". In these options, no percent encoding is performed. So, as I
see it, the following are all serializations of the same data:

URI:
   coap://example.com:5683/city/Montr%C3%A9al

IRI:
   coap://example.com:5683/city/Montréal

CoAP:
   Uri-Host: "example.com"
   Uri-Port: 5683
   Uri-Path: "city"
   Uri-Path: "Montréal"

CIRI:
   [1, "coap",
    2, "example.com",
    4, 5683,
    6, "city",
    6, "Montréal"
   ]

I don't think the problems of one serialization have much impact on
the standardization of a new serialization.

(What's the name of the data model of which URI, IRI, CoAP and CIRI
are serializations?)

Klaus

On Mon, 21 Jan 2019 at 21:11, Dave Thaler
<dthaler=40microsoft.com@dmarc.ietf.org> wrote:
>
> FYI, the IRI WG intended to update RFC 3987 and shut down because it could not reach
> consensus on IRIs.  In particular, RFC 3987 does not match what major implementations
> (i.e. browsers) actually do, and so there's a major incompatibility between current practice
> and what RFC 3987 does.  There does exist at least one RFC 3987 implementation out there
> in Windows WinRT APIs though, but I don't know if there's others.   In practice, the
> recommendation from the internationalization community in the IETF tends to be to not
> use IRIs.   That is, protocols should only ever put URIs (not IRIs) on the wire, and conversion
> from internationalized strings to/from URIs is done at the UI layer.
>
> With that in mind, the case for using IRIs (as opposed to URIs) in Constrained Restful
> Environments seems to not have much real-world applicability since it goes against
> the internationalization guidance.
>
> It's fine for a research project, which T2TRG is allowed to do, but may not be very useful
> in practice, from what I've seen.
>
> Dave
>
> P.S.: An example of one incompatibility between RFC 3987 and what is widely implemented
> in browsers, is how percent encoding is interpreted.  In RFC 3987 it's percent-encoded UTF-8,
> whereas in implementations it's percent-encoded in whatever the charset is of the document
> (or whatever) you got the IRI out of, which may or may not be UTF-8.   Again this is just one
> of many examples.