Re: [regext] Fwd: I-D Action: draft-ietf-regext-rdap-sorting-and-paging-03.txt

Tom Harrison <tomh@apnic.net> Wed, 24 July 2019 14:28 UTC

Return-Path: <tomh@apnic.net>
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 5336C1202C1 for <regext@ietfa.amsl.com>; Wed, 24 Jul 2019 07:28:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=apnic.onmicrosoft.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 eXrWugBixrPW for <regext@ietfa.amsl.com>; Wed, 24 Jul 2019 07:28:56 -0700 (PDT)
Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-eopbgr1300058.outbound.protection.outlook.com [40.107.130.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 651AD120306 for <regext@ietf.org>; Wed, 24 Jul 2019 07:28:56 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y/bWEbhrkdiVJSZJ3lpMsibkuVH3mYN+wWLfyTkC5txnfxVPF4ZaX/k26oY6QlJLbG+T6yJ2lRt5NYolESCxkEtsaM6WUfVmbQ3+hGmctD7OM/PBkvpn9xwXu1UnytKBsYDRUG2lwj5JSG7R4Il2UUKmP30vCKL6K/FMEKIaq9EFu3PwPhVU5Ndrc46HigR06XKZ7xM+EO5nlLCcFcAEWnB75FiH6WAXL0eGQJYSqWE88MuGT8nON1X8y/PL2iz0JgO4wQFh8Mkbn6JXbI3FthDHQaPcG04aZyLoyAmchMpj2PtrA/Pvp1knbpvoCGEJMqw47WVrGUCI71TklkCs3g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2l0iepF5idKxJWjZvcom0ps2ucbvW4Qw+LMAw0h4UQg=; b=n6aXQ7NfYmh5ZdINGPHEpE17ZkgIRQVmex1XHfF1AAgnXKxLoetnEvhNbEJvdyxOW1mStltZw7JNEhj349LFg0eHiISM4aBKSK+V713VprkViybwbLQoHG/rFLMLvVoo1FgLqVkgjmKYB3GryQZUq/K/XYk+9NCDhRW2TTZ8yiDnZ+ewRb2tYV+oNGSvj0DNVw2M2Mf1epMT36XjV4jUDWA27cAzsYKHVHTyRsC0xdED6S1UFxiKe9iz477FDdPLKvv9B486peI5x1iTEKvrrgax6etG64tfMBnIfNOQRZFuqeTJhKSEx/RpJHEK7iLPWPtIXgkV2lfdqR5v7yre/Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=apnic.net;dmarc=pass action=none header.from=apnic.net;dkim=pass header.d=apnic.net;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apnic.onmicrosoft.com; s=selector2-apnic-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2l0iepF5idKxJWjZvcom0ps2ucbvW4Qw+LMAw0h4UQg=; b=vCum1KiYLholD86pW/olHvT0zHLCXAy+3gcCGbXDP2clQulXj3ZxWxK0e2AXTB7UobGOgkGNwLQfyZXHjNfo8NTW4+BDpIG1/dBZUMYrQMcyY4CvJXcGomQ/T11HW3zIFPJeCf8s+4x8c5BOc6vL10ArNJzC6INmKiOrYnfjKsw=
Received: from PU1PR04MB2549.apcprd04.prod.outlook.com (52.133.225.146) by PU1PR04MB2535.apcprd04.prod.outlook.com (52.133.197.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.17; Wed, 24 Jul 2019 14:28:51 +0000
Received: from PU1PR04MB2549.apcprd04.prod.outlook.com ([fe80::a43d:c564:b1f9:1151]) by PU1PR04MB2549.apcprd04.prod.outlook.com ([fe80::a43d:c564:b1f9:1151%5]) with mapi id 15.20.2094.017; Wed, 24 Jul 2019 14:28:51 +0000
From: Tom Harrison <tomh@apnic.net>
To: Mario Loffredo <mario.loffredo@iit.cnr.it>
CC: "regext@ietf.org" <regext@ietf.org>
Thread-Topic: [regext] Fwd: I-D Action: draft-ietf-regext-rdap-sorting-and-paging-03.txt
Thread-Index: AQHVQiwVrO/F2xkEJEesD/lwxABwWA==
Date: Wed, 24 Jul 2019 14:28:51 +0000
Message-ID: <20190724142838.GA14229@tomh-laptop>
References: <156033453086.2525.2797876035414669264@ietfa.amsl.com> <bdf1732e-ada8-94a1-d6bf-ee924862aa8d@iit.cnr.it>
In-Reply-To: <bdf1732e-ada8-94a1-d6bf-ee924862aa8d@iit.cnr.it>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: SYAPR01CA0023.ausprd01.prod.outlook.com (2603:10c6:1::35) To PU1PR04MB2549.apcprd04.prod.outlook.com (2603:1096:803:33::18)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=tomh@apnic.net;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [31.133.145.94]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5a615254-6ca0-48ce-7937-08d710433fa5
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:PU1PR04MB2535;
x-ms-traffictypediagnostic: PU1PR04MB2535:
x-microsoft-antispam-prvs: <PU1PR04MB25358E773B85B037099F45B2C0C60@PU1PR04MB2535.apcprd04.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0108A997B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(7916004)(366004)(396003)(39840400004)(376002)(346002)(136003)(199004)(189003)(6916009)(6512007)(1076003)(64756008)(66946007)(66446008)(386003)(6436002)(66556008)(66476007)(102836004)(2906002)(6506007)(9686003)(186003)(486006)(99286004)(6486002)(25786009)(229853002)(4326008)(6246003)(53936002)(14454004)(52116002)(6116002)(14444005)(68736007)(33656002)(305945005)(76176011)(5660300002)(8936002)(256004)(8676002)(71200400001)(26005)(316002)(11346002)(66066001)(7736002)(476003)(446003)(81166006)(81156014)(86362001)(71190400001)(478600001)(33716001)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:PU1PR04MB2535; H:PU1PR04MB2549.apcprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: apnic.net does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: PVxiZmQTZD4vQS9yXn4wkP/7hhs1uhxzbL+NKqvcxf7n7ASPhlZaKzDdRJ3LWMQvKgrxBOMHy5yY2fW+06UPKWULfhJnv8XTCTw2imdEAHGpKoViIKiNAIt3veZPoR35Sr6nPYGVZK/KX1JiXbCFtYIi+3cAwSqYkLNprtLcWP1dxHlSJXKeMYIlANs9xPyMOs5Xkgew7eBagQP8mZS0ybocwr7Oitlq/uzk4DRpPCgGhfqsjnS4tigySlWb/nCxsY5R9EZVEDx3bReb/yWv+FJeG9iaODNuQwDAVD86PopdQWZ9Eb3NX26V2xNUE/IvDEp/4hb9fZRCswZJIIFQoHAsXZxy2zno+GqfbSprqCIFZyPlf0ZMMglCN4cNmbaQzVVzgRW4DapAishHy+Hok9lRasrze+jbYSPdZA5ySCY=
Content-Type: text/plain; charset="us-ascii"
Content-ID: <30D1F9CB8B22A641BD1BD410664015A2@apcprd04.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: apnic.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 5a615254-6ca0-48ce-7937-08d710433fa5
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2019 14:28:51.5545 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 127d8d0d-7ccf-473d-ab09-6e44ad752ded
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: tomh@apnic.net
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1PR04MB2535
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/HVB1NAJLmVr1sNbDyucmgb49dC0>
Subject: Re: [regext] Fwd: I-D Action: draft-ietf-regext-rdap-sorting-and-paging-03.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: Wed, 24 Jul 2019 14:28:59 -0000

Hi Mario,

On Wed, Jun 12, 2019 at 12:20:40PM +0200, Mario Loffredo wrote:
> in this new version "cc" has been added to the list of sorting properties
> and RFC8605 has been added to the Normative References.

Thanks for putting this together.  Some comments/feedback:

 - Is there a need to be prescriptive about the 'cursor' parameter?
   The draft could simply have text along the lines of "a server that
   implements paging will include at least a 'next' link for fetching
   the next page, and optionally 'first'/'prev'/'last' links for
   accessing other pages in the set of search results".  That way, a
   server can use whatever suits it best, whether that be limit/offset
   parameters or a more generic cursor parameter (or something else).

 - This draft takes a different approach to country/cc values than
   that taken by the reverse search draft.  Why are these values
   treated separately here?  Should servers that don't currently use the
   'cc' parameter, but which do have country name values in their
   jCards, be prevented from sorting based on the country name if a
   client requests that sorting be done by cc?

 - I think it would be useful to document explicitly what happens when
   sorting is carried out on a field for which a record can have
   multiple values.  For example, with jCard properties, the draft
   currently has text about using the value that is most preferred
   (per the 'pref' parameter), but there could be instances of
   multiple values for a property where no 'pref' parameter has been
   set.  This may be as simple as saying "the server will sort based
   on the first value for a given field that appears in the object".

 - Along similar lines, I think it would be useful to go into more
   detail about the exact logic for sorting.  For example, clients
   will typically want IP addresses to be sorted based on their
   numeric value, rather than on their string value, but the current
   text isn't prescriptive about this.

 - The ABNF for 'cursor' is:

    "cursor=" ( ALPHA / DIGIT / "/" / "=" / "-" / "_" )

   which appears to limit it to a single character.  It looks like it
   should instead be:

    "cursor=" 1*( ALPHA / DIGIT / "/" / "=" / "-" / "_" )

 - I don't understand the text in section 2.4 about the problems with
   cursor pagination.  What is a "key field" in "it needs at least one
   key field"?  Also, what is a "key" in "it does not allow to sort
   just by any field because the sorting criterion must contain a
   key"?

-Tom