Re: [regext] Fwd: New Version Notification for draft-ietf-regext-rdap-sorting-and-paging-07.txt

Mario Loffredo <mario.loffredo@iit.cnr.it> Thu, 23 January 2020 12:15 UTC

Return-Path: <mario.loffredo@iit.cnr.it>
X-Original-To: regext@ietfa.amsl.com
Delivered-To: regext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DEEA912008F for <regext@ietfa.amsl.com>; Thu, 23 Jan 2020 04:15:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.198
X-Spam-Level:
X-Spam-Status: No, score=-4.198 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 RBB17GT_f_x3 for <regext@ietfa.amsl.com>; Thu, 23 Jan 2020 04:15:00 -0800 (PST)
Received: from smtp.iit.cnr.it (mx4.iit.cnr.it [146.48.98.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B312A120074 for <regext@ietf.org>; Thu, 23 Jan 2020 04:14:59 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by smtp.iit.cnr.it (Postfix) with ESMTP id B7C37B80413; Thu, 23 Jan 2020 13:14:57 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mx4.iit.cnr.it
Received: from smtp.iit.cnr.it ([127.0.0.1]) by localhost (mx4.iit.cnr.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s701psGYcxTy; Thu, 23 Jan 2020 13:14:53 +0100 (CET)
Received: from [192.12.193.108] (pc-loffredo.nic.it [192.12.193.108]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by smtp.iit.cnr.it (Postfix) with ESMTPSA id 87CC3B8040D; Thu, 23 Jan 2020 13:14:52 +0100 (CET)
To: Karl Heinz Wolf <khwolf1@gmail.com>
Cc: "regext@ietf.org" <regext@ietf.org>
References: <157684120749.27347.11479578748472034188.idtracker@ietfa.amsl.com> <92681df8-1d89-588b-377e-592b48d9e819@iit.cnr.it> <CAL=Qo5j=uKb=Ha7aFnRA8rbzvxm6-hUEUUCmb83SjyDnXmwpVQ@mail.gmail.com>
From: Mario Loffredo <mario.loffredo@iit.cnr.it>
Message-ID: <4f7f56ff-826d-e148-91ad-21bdc669ea05@iit.cnr.it>
Date: Thu, 23 Jan 2020 13:12:47 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0
MIME-Version: 1.0
In-Reply-To: <CAL=Qo5j=uKb=Ha7aFnRA8rbzvxm6-hUEUUCmb83SjyDnXmwpVQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------F2634FAD153CA0FC81806202"
Content-Language: it
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/8Nmo3FrHE_L5njEA_AMEYZGuD4o>
Subject: Re: [regext] Fwd: New Version Notification for draft-ietf-regext-rdap-sorting-and-paging-07.txt
X-BeenThere: regext@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Registration Protocols Extensions <regext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/regext>, <mailto:regext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/regext/>
List-Post: <mailto:regext@ietf.org>
List-Help: <mailto:regext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/regext>, <mailto:regext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Jan 2020 12:15:03 -0000

Hi Karl Heinz,

thanks a lot for your review and feedback. My comments are inline.

Il 22/01/2020 09:30, Karl Heinz Wolf ha scritto:
>
> Mario,
>
> here is my feedback on this draft:
>
> general comment:
>
> I think it would be easier to understand the document if the actual 
> specification and the reasoning would switch places (or even go into a 
> kind of appendix).
>
ML: OK.
>
> Section 1:
>
> Just as a side note: you talk about users interacting with a web 
> browser, but I’m afraid by adding this extension to the RDAP response 
> it is also not easy to read in the browser…
>
ML: I guess you mean "paging" when you say "this extension".

It is undoubtful that putting the links for result set scrolling into 
the HTTP header rather than into the query string means that they can't 
be specified in a GET request, unless using a REST plugin, and can't be 
included among the links of an RDAP response. Therefore, according to 
the first solution described, a user interacting through a web browser 
would be unable to use the paging capability.

With regards to "pageSize" and "pageNumber" infomation, they avoid such 
a user to feel disoriented in the result set. Especially together with 
the "totalCount" information, they achieve the same goal as a progress 
bar for a process taking some steps.

> Section 2.1:
>
> Where it says “SHOULD provide additional information in their 
> responses” you could probably add which responses in particular.
>
ML: I have a different opinion from you about this sentence. Let's wait 
for other reviews to decide whether it is clear enough or not.

The basic concept is that the additional information in the response 
should contribute to make an RDAP server more self-descriptive. I mean, 
a server could allow to specify a sorting crterion in its requests 
without providing the "sorting_metadata" information in its responses 
but, in this case, the consumer must know a priori that a sorting 
capability is available and which sorting properties are implemented. 
The same goes for "paging_metadata". In this case, the consumer doesn't 
need to know anything in advance.  Anyway, the "paging_metadata" element 
conveys more information and is more traceable by a client (i.e. a 
software agent) than a mere link in a notice.

> Not sure if “At least one between” is the right term (2 occurrences).
>
ML: Removed the sentence because it is redundant.
>
> For “totalCount” “It is provided if the query string contains the 
> "count" parameter;” suggestion: “It MUST be provided if the query 
> string contains the "count" parameter with a value of true”
>
ML: OK
>
> Section 2.3.1: sorting of multiple IP addresses is underspecified.
>
ML: the sorting properties "ipV4" and "ipV6" cover the case related to 
the most common DNS configuration (i.e. one IPV4 and one IPV6 
addresses). The case of multiple IPV4 and IPV6 addresses can be treated 
in the same way as the sorting properties for entity objects, I mean,  
sorting MUST be applied to the first value returned in the response. 
Anyway, I'll furtherly clarify this concept in the next version.
>
> What is not clear to me is if the client is allowed to send a limit in 
> its initial request (not knowing if the server even supports 
> limit/offset)? Or is it intended that the client does not send any 
> preferences on the first request and the response is done based on 
> server policy and metadata is added?
>
ML: The latter. The user cannot select a result set portion in its 
initial request. The cursor value is an opaque string whose meaning is 
completely unknown to the consumer. It's only a link to another portion 
of the result set (e.g. the next one). Usually, the consumer doesn't 
know in advance the page size that might even be different according to 
the user access level. Therefore, the consumer might request a number of 
results exceeding the server limit which basically means more complexity 
to deal with by server implementers.

If the consumer wishes the first N results, two things can happen when 
cursor pagination is implemented:

1) if N is greater than the page size, the consumer will simply receive 
more results than required.

2) if N is lower than the page size, the consumer will scroll the result 
set until the desired number of results is reached.

In both cases, each request is correct and each response is sustainable 
by the server.

Offset is generally used together with limit to traverse a result set. 
It makes little sense to specify an offset value at the initial request. 
The cursor pagination achieves the same goal as offset/limit pagination 
with the only difference that the page size is set by the server. 
Anyway, since the cursor is an opaque string, the server is free to 
implement pagination based either on key values or on record position.

> Anyway, having sorting and paging for RADP is certainly a good idea.
>
Happy you agree about it :-)

Feel free to contact me for any additional Information.


Cheers,

Mario

> Best,
>
> Karl Heinz
>
>
> On Fri, Dec 20, 2019 at 12:30 PM Mario Loffredo 
> <mario.loffredo@iit.cnr.it <mailto:mario..loffredo@iit.cnr.it>> wrote:
>
>     Hi folks,
>
>     I just published a new version including a section about paging
>     responses to POST requests.
>
>
>     Best,
>
>     mario
>
>
>
>     -------- Messaggio Inoltrato --------
>     Oggetto: 	New Version Notification for
>     draft-ietf-regext-rdap-sorting-and-paging-07.txt
>     Data: 	Fri, 20 Dec 2019 03:26:47 -0800
>     Mittente: 	internet-drafts@ietf.org <mailto:internet-drafts@ietf.org>
>     A: 	Maurizio Martinelli <maurizio.martinelli@iit.cnr.it>
>     <mailto:maurizio.martinelli@iit.cnr.it>, Scott Hollenbeck
>     <shollenbeck@verisign.com> <mailto:shollenbeck@verisign.com>,
>     Mario Loffredo <mario.loffredo@iit.cnr.it>
>     <mailto:mario.loffredo@iit.cnr.it>
>
>
>
>
>     A new version of I-D, draft-ietf-regext-rdap-sorting-and-paging-07.txt
>     has been successfully submitted by Mario Loffredo and posted to the
>     IETF repository.
>
>     Name: draft-ietf-regext-rdap-sorting-and-paging
>     Revision: 07
>     Title: Registration Data Access Protocol (RDAP) Query Parameters
>     for Result Sorting and Paging
>     Document date: 2019-12-20
>     Group: regext
>     Pages: 25
>     URL:
>     https://www.ietf.org/internet-drafts/draft-ietf-regext-rdap-sorting-and-paging-07.txt
>     Status:
>     https://datatracker.ietf.org/doc/draft-ietf-regext-rdap-sorting-and-paging/
>     Htmlized:
>     https://tools.ietf.org/html/draft-ietf-regext-rdap-sorting-and-paging-07
>     Htmlized:
>     https://datatracker.ietf.org/doc/html/draft-ietf-regext-rdap-sorting-and-paging
>     Diff:
>     https://www.ietf.org/rfcdiff?url2=draft-ietf-regext-rdap-sorting-and-paging-07
>
>     Abstract:
>     The Registration Data Access Protocol (RDAP) does not include core
>     functionality for clients to provide sorting and paging parameters
>     for control of large result sets. This omission can lead to
>     unpredictable server processing of queries and client processing of
>     responses. This unpredictability can be greatly reduced if clients
>     can provide servers with their preferences for managing large
>     responses. This document describes RDAP query extensions that allow
>     clients to specify their preferences for sorting and paging result
>     sets.
>
>
>
>     Please note that it may take a couple of minutes from the time of
>     submission
>     until the htmlized version and diff are available at
>     tools.ietf.org <http://tools.ietf.org>.
>
>     The IETF Secretariat
>
>     _______________________________________________
>     regext mailing list
>     regext@ietf.org <mailto:regext@ietf.org>
>     https://www.ietf.org/mailman/listinfo/regext
>
>
> _______________________________________________
> regext mailing list
> regext@ietf.org
> https://www.ietf.org/mailman/listinfo/regext

-- 
Dr. Mario Loffredo
Servizi Internet e Sviluppo Tecnologico
CNR - Istituto di Informatica e Telematica
via G. Moruzzi 1, I-56124 PISA, Italy
E-Mail: mario.loffredo@iit.cnr.it
Phone: +39.0503153497
Mobile: +39.3462122240
Web: http://www.iit.cnr.it/mario.loffredo