Re: [core] Report on first Resource Directory plugtest

peter van der Stok <stokcons@xs4all.nl> Mon, 16 April 2018 08:26 UTC

Return-Path: <stokcons@xs4all.nl>
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 4CFAC127077 for <core@ietfa.amsl.com>; Mon, 16 Apr 2018 01:26:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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 t5b4ghOVHh4n for <core@ietfa.amsl.com>; Mon, 16 Apr 2018 01:26:18 -0700 (PDT)
Received: from lb1-smtp-cloud7.xs4all.net (lb1-smtp-cloud7.xs4all.net [194.109.24.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8998E126BF0 for <core@ietf.org>; Mon, 16 Apr 2018 01:26:18 -0700 (PDT)
Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:204]) by smtp-cloud7.xs4all.net with ESMTPA id 7zSqfF9ZQ8U077zSqfDBsu; Mon, 16 Apr 2018 10:26:16 +0200
Received: from 2001:983:a264:1:a97d:6638:fb5:6cad by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Mon, 16 Apr 2018 10:26:16 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Content-Transfer-Encoding: 7bit
Date: Mon, 16 Apr 2018 10:26:16 +0200
From: peter van der Stok <stokcons@xs4all.nl>
To: "Christian M. Amsüss" <christian@amsuess.com>
Cc: consultancy@vanderstok.org, Carsten Bormann <cabo@tzi.org>, Jim Schaad <ietf@augustcellars.com>, Core WG mailing list <core@ietf.org>
Organization: vanderstok consultancy
Reply-To: consultancy@vanderstok.org
Mail-Reply-To: consultancy@vanderstok.org
In-Reply-To: <20180413110301.GL18144@hephaistos.amsuess.com>
References: <20180413110301.GL18144@hephaistos.amsuess.com>
Message-ID: <b2c080f6f75160fa6c6977379b6bcf02@xs4all.nl>
X-Sender: stokcons@xs4all.nl
User-Agent: XS4ALL Webmail
X-CMAE-Envelope: MS4wfNqn5uXLycSZmLIvkwYzrLZtLlk5dJv0Mmj+XrJ//4FiF4LVJPbEFlAGWtdSaOy9LbZFLV0fspVohophkTXjXJPk96KSbwQNsoQ0cGsPvL85Fz0vc83x 7kGPzKEzSZPPP0UnQ+U2Yndk4p4cU13SsL1DOKsI16xx2aBxIl03YR3YrgCRj7JehfU4OESjU/WDk0mbJJtBFaa2jchDxQJxAiqcHRYftu1LIWykZ7ZOaKhv wQMGbGUE/gjrcMzm5n2O94T6mUtH7NHBy0l4BTPpmnPjY3y4rT3PTA2X/jWupxO1
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/hJdRpDT_yI1ebWekeZi2GxoRLy4>
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: Mon, 16 Apr 2018 08:26:20 -0000

Hi all,

The extra-attrs* in the template has more consequence than I originally 
thought.
Apparently, it allows any query-parameter used in a given link to be 
used in the RD and given a value.
The consequence is that we do not have a resource directory but 
something more fine-grained: a query directory.
A user can specify a large number of queries with different values in a 
link specification.
The RD can then be queried for links with for example: 
nm="petervanderstok".

Don't we want to contain the possible query parameters that we allow in 
extra-attrs*.

An alternative is that exra-attrs* provides a list of the query 
parameters that are available for the link.

Peter
> 
> 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.)
>