Re: [core] Report on first Resource Directory plugtest

Christian M. Amsüss <christian@amsuess.com> Fri, 13 April 2018 11:03 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E8EB2126B6D for <core@ietfa.amsl.com>; Fri, 13 Apr 2018 04:03:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.565
X-Spam-Level:
X-Spam-Status: No, score=0.565 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FAKE_REPLY_C=1.486, FROM_EXCESS_BASE64=0.979] 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 5u-Ppb_Oo8Ob for <core@ietfa.amsl.com>; Fri, 13 Apr 2018 04:03:16 -0700 (PDT)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [5.9.147.112]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8DFAE1252BA for <core@ietf.org>; Fri, 13 Apr 2018 04:03:16 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id 5158F49784; Fri, 13 Apr 2018 13:03:14 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 151C674; Fri, 13 Apr 2018 13:03:04 +0200 (CEST)
Received: from hephaistos.amsuess.com (hephaistos.amsuess.com [IPv6:2a02:b18:c13b:8010::db8]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 337B031; Fri, 13 Apr 2018 13:03:04 +0200 (CEST)
Received: (nullmailer pid 19929 invoked by uid 1000); Fri, 13 Apr 2018 11:03:02 -0000
Date: Fri, 13 Apr 2018 13:03:02 +0200
From: "Christian M. Amsüss" <christian@amsuess.com>
To: consultancy@vanderstok.org, Carsten Bormann <cabo@tzi.org>, Jim Schaad <ietf@augustcellars.com>
Cc: Core WG mailing list <core@ietf.org>
Message-ID: <20180413110301.GL18144@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="cy9Nn4fUvYST66Pl"
Content-Disposition: inline
In-Reply-To: <9D3CBCEA-C563-4B55-B018-C134B3F023B4@tzi.org> <04f1581cff70df7435428bffc5ef0755@xs4all.nl>
User-Agent: Mutt/1.9.4 (2018-02-28)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/S-ObmTt1mCI59RCTBXReRHfoPY8>
Subject: Re: [core] Report on first Resource Directory plugtest
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Apr 2018 11:03:19 -0000

Hello Peter, Carsten,
hello Jim (responding cross-thread to the Location-Query point),

(removing DNS-SD from the thread because I do not expect those topics to
be particularly interesting there)

On Fri, Apr 13, 2018 at 09:04:33AM +0200, peter van der Stok wrote:
> to be filled into the github, I hope.

yes, as I am finally going thorough the existing issues and changes.

On Fri, Apr 13, 2018 at 09:14:27AM +0200, Carsten Bormann wrote:
> >  * Can there be a Location-Query option in a registration response?
> >    (Probably not, we just didn’t say that.)
> 
> Why not?
> (Sorry, I missed out on responding to Jim’s earlier message on this.
> I’m trying to find out why we need to restrict the server’s flexibility in choosing the URI here.
> Maybe there is a good reason, I’d just like it to be more explicitly stated.)

The good reason is that we are using URI templates in the registration
update operation: {+location}{?lt,con,extra-attrs*}

While it should be intuitively obvious that for location="x://y/z?a=b"
and lt="42", the produced URI is "x://y/z?a=b&lt=42", RFC6570 Section
3.2.8 does not describe peeking back at what has been expanded to the
left side, but prescribes a "?" to be used before the first value, so
the produced URI would be "x://y/z?a=b?lt=42" (or possibly ?a=b%3Flt=42
but not ?a=b&lt=42).

If I'm reading RFC6570 wrong here, Location-Path can be allowed and I'd
be happy.

Otherwise, we have to choose between using formal URI templates here
(vs. saying that some query parameters can be appended) and allowing
Location-Query. (Requiring anyone to understand ?foo=bar?baz=qux as two
keyswould be madness so it's not an option.)

> > Ceterum censeo RFC6690 esse revidendam.
> 
> Well, the general feeling was that instead of going for a 6690bis, we
> maybe want to let the link-format just fade out (In favor of
> links-json/-cbor).

link-json/-cbor is not helping with the issue of [1].

Whoever receives a link-format+json document and wants to follow a link
given there needs to take the href and the anchor, and look up in
RFC6690 Section 2.1, which is the very root of my misgivings about the
situation.

[1]: https://mailarchive.ietf.org/arch/msg/core/LS0ccxtH8nEVuy73iZoRkkfBpmw

> >  * Production and parsing of invalid RFC6690 (which link attributes
> >    need to be quoted, 
> 
> Right.  I think we really should be following RFC 8288 here and asking
> implementations to be robust to the misguided “this attribute needs to
> be quoted” decisions we made in RFC 6690.
> 
> Maybe we can put a few updates to 6690 in links-json?

I don't know from a procedural PoV -- can we? And how far can that go?

Best regards
Christian

-- 
I shouldn't have written all those tank programs.
  -- Kevin Flynn