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

Tom Harrison <tomh@apnic.net> Mon, 05 August 2019 00: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 86985120131 for <regext@ietfa.amsl.com>; Sun, 4 Aug 2019 17:28:08 -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 okftr0jEoL33 for <regext@ietfa.amsl.com>; Sun, 4 Aug 2019 17:28:06 -0700 (PDT)
Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-eopbgr1300047.outbound.protection.outlook.com [40.107.130.47]) (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 D62EC120123 for <regext@ietf.org>; Sun, 4 Aug 2019 17:28:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0JTrVJctxQuRL9/9SWXHEjrYAVz/2MDIyOKfiwLBACHbRIDzCHHbAMFG7Wk6aFnZiXlKgym6oJwtsbKWU7hyDmsw/ntW3ib4CaSUxEvVnHUsnoVYSb4LgffJccWFBHIq98b6b8tXnSuWJU13M2MrvafTwTG7WXP4OVM0WcnYYzplG5D8ihhnabRQlNJTBysmKOIBvuZxrKF0Pyg1Ti5PfPOIfIKNAbw9B5LNDJ+/w+G45/5cC6BxkMcn6FmUs/0ovmxySZF9pJd4Kg/TUZ5Yo8lIdfpUmfDRnIM5RTFFWEO8tcONVDX2mcY037ddzY79peurjqZ9l1eFe15CZBuEA==
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=UJWG8+4TItcRNt1h3j3cforhB+/hljhCiEF3s7atdcU=; b=EPJcz7R+X29fVVsLPSsPy7c97mE3BTQH7MUvP2lQcGX8eNDGXWJSX5e1WwRpvupaBkLOMuSIclJOZoOOQCvzp7k1822UGYfPU4ZiCzA495HPVe5uAsF/NoTEclqhXCAXNfkl1cvbt3/Bguz5muGVlOKe5b0T+iPYnYwFgTqZqJRDWKdNlTKHHI0EgN2H9DrVRpE/11H3m0oiqc7PqQ7Om1qWv68XDgAn/aYPbrEUvVjIjpOv9FczjxOnxplJkX4XsevvqsqOayphMZgmHR+1mOqsUYFph5q8MB9UHDkraxDriymRMTMvis7EsvW1tg8eUmppHixbYZsaJhKgCIoALg==
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=UJWG8+4TItcRNt1h3j3cforhB+/hljhCiEF3s7atdcU=; b=xm0lzOeg3O8Oo4Y7AHW+Q1C5bT5wv46GieGfbfVMggCegkaTI0/iZDabHaA58hbZZ9cHdNl5CE0ZAYwvNjZWyvhnmvu40qavhZ/0CvNDYDvLNi5wWLFXUva9PoyBxB8EF1p/8GyujwuWeE/zFEOXnNvfUBZcQ6n0MzZ6kggzeAE=
Received: from PU1PR04MB2549.apcprd04.prod.outlook.com (52.133.225.146) by PU1PR04MB2294.apcprd04.prod.outlook.com (52.133.199.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Mon, 5 Aug 2019 00:28:01 +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.2136.018; Mon, 5 Aug 2019 00:28:01 +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: Mon, 05 Aug 2019 00:28:01 +0000
Message-ID: <20190805002910.GA2850@tomh-laptop>
References: <156033453086.2525.2797876035414669264@ietfa.amsl.com> <bdf1732e-ada8-94a1-d6bf-ee924862aa8d@iit.cnr.it> <20190724142838.GA14229@tomh-laptop> <f6a08fcd-a26c-9072-155f-65ff564bd8b1@iit.cnr.it>
In-Reply-To: <f6a08fcd-a26c-9072-155f-65ff564bd8b1@iit.cnr.it>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: SYBPR01CA0154.ausprd01.prod.outlook.com (2603:10c6:10:d::22) 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: [203.119.0.128]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: cdf5facd-aa51-4fe9-74e2-08d7193bc5e3
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:PU1PR04MB2294;
x-ms-traffictypediagnostic: PU1PR04MB2294:
x-microsoft-antispam-prvs: <PU1PR04MB2294D883B7CD2341203A022AC0DA0@PU1PR04MB2294.apcprd04.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 01208B1E18
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(7916004)(346002)(376002)(136003)(39830400003)(366004)(396003)(199004)(189003)(66066001)(14454004)(6506007)(99286004)(81166006)(33716001)(5660300002)(81156014)(8936002)(76176011)(8676002)(14444005)(256004)(102836004)(11346002)(6486002)(6916009)(6436002)(86362001)(486006)(9686003)(446003)(476003)(6512007)(386003)(229853002)(53936002)(4326008)(66476007)(25786009)(3846002)(6116002)(71200400001)(71190400001)(33656002)(66556008)(26005)(66446008)(64756008)(52116002)(1076003)(478600001)(305945005)(2906002)(68736007)(66946007)(316002)(6246003)(186003)(7736002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:PU1PR04MB2294; 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: hn/LnulO7cGv7I+/NjGCz1lPSJdV3rANtRRvhKGdHGRq2Iex5r3ddUfyzTwSljHR3H8mC+aq5bRgg1lwIF+h+q9Q21M1sihK+geyS3mG2Dfi87utpUIdsnhVKjUdfyeuVkNt1VitI7XRXg8z73F9r/ecWi2sZWGEEMbe1w1R7E7XWGvP69VmFyzYzWulKu1tNF++nfgt1K8AcADa/6k6uxhg4766VHVWDxWq+IJEbP7F5rvGRGdYNFdTbrqtrbg0+luNBC8StBMXbT0FyxTEsASXjIkABmfzBTmyOATxef/HWMLDHkuDg4J+lF0QU4Zg8aWGFIeo/VkmNfDZlG14Dvy3U8ToqDcfwbgkgJCTdAfQrJxiAI00dWbQV0hQ+KkRNw6/Q29kzikrstxOsBh4/W8bLiX+3PlXaRhhbGT9hCI=
Content-Type: text/plain; charset="us-ascii"
Content-ID: <FF41B5F13D6DC9418E9FE04F9227534E@apcprd04.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: apnic.net
X-MS-Exchange-CrossTenant-Network-Message-Id: cdf5facd-aa51-4fe9-74e2-08d7193bc5e3
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2019 00:28:01.1796 (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: PU1PR04MB2294
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/Iv3yAiE2csPxVUjvyXa71s_djPc>
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: Mon, 05 Aug 2019 00:28:09 -0000

Hi Mario,

On Wed, Jul 24, 2019 at 05:32:21PM +0200, Mario Loffredo wrote:
> Il 24/07/2019 16:28, Tom Harrison ha scritto:
>>   - 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?
> 
> It's not clear to me what you mean when you say the two approaches
> are different.

What I mean is that the reverse search document has this concept of a
mapping from an external model (EPP) to an internal model (jCard),
whereas the sorting and paging document uses jCard directly as part of
its public interface and is very explicit as to where certain values
will appear.  The example I gave in the original email wasn't good: a
better example is one where the server does publish the country code,
but in a non-standard location (e.g. the "ISO-3166-1-alpha-2"
parameter that some servers use).  This inconsistency could be
confusing for users: with such a server, a reverse search by country
code would work, but an attempt to sort by country code would fail
with an error message.  I think dropping the mapping from the reverse
search document is the simplest way to address this consistency issue,
since it seems that the only reason to have the mapping is to deal
with divergent approaches to country codes that came up pre-RFC 8605,
but now that that document exists servers should be updated to be
compliant with it.

> In the reverse search poposal, "cc" is an an address property and
> can be used individually or together with another address property
> to submit a reverse query based on an address rather then on a
> single property each time.  I'm not sure this is the right approach.
> I mean, is it better to allow a reverse search based on the entire
> address or on one of its properties and leave AND joined predicates
> to a future capability? This is a question I'm going to make to the
> WG tomorrow.

I think it would be better to limit reverse search to single
attributes and leave AND-joined predicates for later. 

>>   - 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.
> 
> Good quaestion. I think the sort ordering should be consistent with
> the field JSON type. If the field is a JSON string, the
> lexicographic ordering should go. If the field is a JSON number, the
> numeric ordering should go.

But IP addresses are represented as JSON strings, so this won't work
for them.  It may be that IP addresses would be the only exception to
a prospective 'JSON strings are sorted lexicographically, JSON numbers
are sorted numerically' rule, but it still seems like something worth
documenting.

-Tom