Re: [regext] AD Review: draft-ietf-regext-org-ext-07

Pieter Vandepitte <pieter.vandepitte@dnsbelgium.be> Thu, 09 August 2018 07:45 UTC

Return-Path: <pieter.vandepitte@dnsbelgium.be>
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 B43F5130F00 for <regext@ietfa.amsl.com>; Thu, 9 Aug 2018 00:45:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=dnsbelgium.be
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 iwCm3_rpLQpZ for <regext@ietfa.amsl.com>; Thu, 9 Aug 2018 00:45:11 -0700 (PDT)
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10114.outbound.protection.outlook.com [40.107.1.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 067E6130F33 for <regext@ietf.org>; Thu, 9 Aug 2018 00:45:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dnsbelgium.be; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m8mIRCghKYfIn1JQ7omCWVUGfQU+4qensXRYn++nHuI=; b=s314Dl6yGFY15XbOZF/GYPC5CPhOjLWUpU4JFHWDDxz1Bo9l6rZcEU96vDCMWWMdvQoijjy4SwQvLfQNqYqTkpuorLamrCDe2hSdQ9PcF8l7L0A/qtW9+xMrfM9C3vH6JFE8pDQPv2Vutr6oDiinj4v1kZ49M8f7nsnlRdIn8dk=
Received: from HE1PR0601MB1930.eurprd06.prod.outlook.com (10.166.123.140) by HE1SPR8PMB91.eurprd06.prod.outlook.com (10.166.196.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.23; Thu, 9 Aug 2018 07:45:04 +0000
Received: from HE1PR0601MB1930.eurprd06.prod.outlook.com ([fe80::5528:52ad:6c39:456b]) by HE1PR0601MB1930.eurprd06.prod.outlook.com ([fe80::5528:52ad:6c39:456b%2]) with mapi id 15.20.1038.023; Thu, 9 Aug 2018 07:45:04 +0000
From: Pieter Vandepitte <pieter.vandepitte@dnsbelgium.be>
To: Linlin Zhou <zhoulinlin@cnnic.cn>, Adam Roach <adam@nostrum.com>, draft-ietf-regext-org-ext <draft-ietf-regext-org-ext@tools.ietf.org>, regext <regext@ietf.org>
Thread-Topic: [regext] AD Review: draft-ietf-regext-org-ext-07
Thread-Index: AQHUJf5GR1M684D4LUCjUl8E37PZD6SnTzEmgAwlkwCAAeqZmIABcjZOgABtuQA=
Date: Thu, 09 Aug 2018 07:45:03 +0000
Message-ID: <90025736-95ED-4969-B958-FC3AB6BB1746@dnsbelgium.be>
References: <c33925d0-eff9-62f2-2975-49cd413f4ebb@nostrum.com> <20180730142111887503210@cnnic.cn> <e253f0ab-d9ca-3f1e-6837-8af284eab5e1@nostrum.com> <2018080813065153438860@cnnic.cn> <2018080911115301931760@cnnic.cn>
In-Reply-To: <2018080911115301931760@cnnic.cn>
Accept-Language: nl-BE, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pieter.vandepitte@dnsbelgium.be;
x-originating-ip: [2a02:1802:5f:131:de:1157:9700:d2dc]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1SPR8PMB91; 6:Oc2BeEAnnYtOi8RFlgdph+/MFdrjqyUmqwKwTzb6iOFbilZaWkbZ7rYA6RX/2PBu60H3clrqan5WFZJ/G9Y4eIYHJOzuDO2UDY4ZCdxD6bB3tCWuHqzOF711z2XEWq0iNI2hS83g2I0r0ylaUokoQsCpZ8NUMId6zp8v6m3/0tFjlBhEDM8vgFzsbztGi71Qz+EW8l4f1EgNzb1X5iqb5EAwpVUi7vQ24rAPIm9fHPlW11TldkJgxGPFH9adeeVHzjytg6z8kaTI6TlkNBxBX768Gk0NE9TBFrigoOCZQstK1QPJU6vCYqrakHvFO19r3O6FaK2mqYDMyXmNG/sejoVou24tkTIaXPZVDgUo5ZxHmD8TsVx0NekayJ4zu4pv1JuXcGSP/0noQO5sOC12Sb968OyRURSfny3q6V4i06t+W59/RUIGbGvowU92cziAxi3wnpTsBvmXTJMJO4cCgw==; 5:J0mZolq9AF/XpFtwwA9KHaefBatnNFxnPDixlXAn04eWc8FwazDpjwIyn28Y3SkOmUpF0EROylpba/tTnW2CZB20aU1/K5Ih7dM6HxhmYgIVH6Kmz+kaX7svU6n++f6/NQOfyOWE6uLzLRmH4jF74SJGgIISEfbfp+s4jjT9udE=; 7:sh0PQsZfCDq2KPtcQpYRLTZMq0pRiRlKrB0FnVdhQ740rLXQ9z1yG/M3OLZ0vvJM6/ObXOgWFFUn0/LHLIP7MfGBD2UwAxer0PQHNePIrUcbywOawVwVLpDUpehLK22s6sHlwQk6XiGcVH0NqiJ2hJDY0XmUHs6BgnWL6CL+kSEUIn+/solSYJGHH4/rTFCCXkqoMRCtnvS8TtHggJWzsvMPGm9JJ086E4dSylbAmUBiqTi+pxRYs1g23bnENaQh
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: f3c5764e-9a66-4d2d-2988-08d5fdcc0501
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(49563074)(7193020); SRVR:HE1SPR8PMB91;
x-ms-traffictypediagnostic: HE1SPR8PMB91:
x-microsoft-antispam-prvs: <HE1SPR8PMB9172CD14DF9A8F40B4520AE2250@HE1SPR8PMB91.eurprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(158342451672863)(131327999870524)(21748063052155);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415395)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123564045)(20161123560045)(2016111802025)(20161123558120)(20161123562045)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1SPR8PMB91; BCL:0; PCL:0; RULEID:; SRVR:HE1SPR8PMB91;
x-forefront-prvs: 0759F7A50A
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(346002)(39840400004)(136003)(396003)(366004)(189003)(199004)(54164003)(478600001)(606006)(25786009)(53386004)(76176011)(53546011)(14454004)(93886005)(6486002)(6506007)(106356001)(105586002)(99286004)(6246003)(102836004)(44832011)(46003)(110136005)(790700001)(6116002)(186003)(446003)(316002)(68736007)(476003)(2616005)(11346002)(486006)(8936002)(9326002)(2906002)(8676002)(14444005)(2900100001)(53946003)(5660300001)(82746002)(53936002)(36756003)(97736004)(6436002)(99936001)(7736002)(81166006)(54896002)(236005)(6306002)(6512007)(733005)(256004)(54556002)(86362001)(33656002)(81156014)(229853002)(74482002)(83716003)(5250100002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1SPR8PMB91; H:HE1PR0601MB1930.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: dnsbelgium.be does not designate permitted sender hosts)
x-microsoft-antispam-message-info: hWxBXV1wG3CyhqnUqA6wVoEB6mfFq8nleDa+Mc97HlSaLzGhgHvBy1RrK7VdzPOLM2i32EZID/ihW9tyFgLEoCgBUt2FP5fOjGxDSeJ+D3c3nUtRFoV84glyz6TgSCYbV/+xyCdhVUpje7faqod+iSXt0BSzNMzBoLq5zhNrdYjwmtzXNpxSa+SWCKTVfJ/1+LNbpgdVdZBTa5t0/1X19lGJEy1c+TDobmhLGSa/Uds80rlCFNd0+ndYQEFcBAZ3LHERDYHo2u+DTqDZilVeKuKxZMQRu5JwKuZtHR35GW3BhhexJzZrudZ9T9KPkNktUtR0tYSctuXqyhpkZDniPVzBujoGqtXtvJUv5f60Yvs=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/related; boundary="_004_9002573695ED4969B958FC3AB6BB1746dnsbelgiumbe_"; type="multipart/alternative"
MIME-Version: 1.0
X-OriginatorOrg: dnsbelgium.be
X-MS-Exchange-CrossTenant-Network-Message-Id: f3c5764e-9a66-4d2d-2988-08d5fdcc0501
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Aug 2018 07:45:03.9254 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 695195de-c0cb-4478-9204-2a861e60e59c
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1SPR8PMB91
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/PiMSo_COUQXTJBJhaE_oFcYH9cA>
Subject: Re: [regext] AD Review: draft-ietf-regext-org-ext-07
X-BeenThere: regext@ietf.org
X-Mailman-Version: 2.1.27
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, 09 Aug 2018 07:45:17 -0000

Hi Linlin,

Other RFC’s do not specify the error codes in particular cases (e.g. 5731 does not specify what to return if you remove a linked contact does not exist). But… on the other hand, I think it can be very useful if all Registries use the same error codes for the same use cases.
It’s just that if you start to specify them, you have to be as complete as possible. You can’t randomly pick some cases. There are quite a lot of other cases, so where do we stop? E.g. deleting an organization object which is already linked, add a link for which the organization does not exist, … to just name a few of them.

Isn’t this useful content for some kind of Best Practices document?

Kind regards

Pieter

--
Pieter Vandepitte
Product Expert
+32 16 28 49 70
www.dnsbelgium.be<http://www.dnsbelgium.be>

[DNS_PUNT_Belgium_RGB]



From: regext <regext-bounces@ietf.org> on behalf of Linlin Zhou <zhoulinlin@cnnic.cn>
Date: Thursday 9 August 2018 at 05:12
To: Adam Roach <adam@nostrum.com>, draft-ietf-regext-org-ext <draft-ietf-regext-org-ext@tools.ietf.org>, regext <regext@ietf.org>
Subject: Re: [regext] AD Review: draft-ietf-regext-org-ext-07

Dear Adam and WG,
Sorry, please ignore last unfinished letter.

We've received some comments on the appropriate error codes. Since draft-ietf-regext-org-ext is a command / response extension of another object that is related to a link attribute, 2305 seems like a more proper error code for all of them, which means "Object association prohibits operation". The association dould refer to an existing association (e.g., attempt to add alink that already exists) or a requested association (e.g. attempt to remove a link that does not exist).
We found that in RFC5730 , the document already defined the response format with error value elements using <value> or <extValue> for an object. So we suggest not defining the specific response format in this command/response extension.
The co-authors have discussed this issue and suggested the following changes.

An EPP error response MUST be returned if an <update> command cannot be processed for any reason.
An attempt to add one organization ID or multiple organization IDs with a particular role value when at least one of them already exists does not change the object at all. A server SHOULD notify clients that object relationsips exit by sending a 2305 error response code.
An attempt to remove an organization ID or multiple organization IDs with a particular role value when at least one of them does not exist does not change the object at all. A server SHOULD notify clients that object relationships does not exist by sending a 2305 error response code.
An attempt to change an organiztion ID or multiple organization IDs with a particular role value when at least one of them does not exist does not change the object at all. A server SHOULD notify clients that object relationships does not eixt by sending a 2305 error response code.
Response format with error value elements is defined in section 2.6 of RFC5730.

Regards,
Linlin
________________________________
zhoulinlin@cnnic.cn

From: Linlin Zhou<mailto:zhoulinlin@cnnic.cn>
Date: 2018-08-08 13:06
To: Adam Roach<mailto:adam@nostrum.com>; draft-ietf-regext-org-ext<mailto:draft-ietf-regext-org-ext@tools.ietf.org>; regext<mailto:regext@ietf.org>
Subject: Re: Re: [regext] AD Review: draft-ietf-regext-org-ext-07
Dear Adam,
I have included my feedbacks for the remaining issues. Please see below.

Regards,
Linlin
________________________________
zhoulinlin@cnnic.cn

From: Adam Roach<mailto:adam@nostrum.com>
Date: 2018-08-07 07:51
To: Linlin Zhou<mailto:zhoulinlin@cnnic.cn>; draft-ietf-regext-org-ext<mailto:draft-ietf-regext-org-ext@tools.ietf.org>; regext<mailto:regext@ietf.org>
Subject: Re: [regext] AD Review: draft-ietf-regext-org-ext-07
Responses inline.

On 7/30/18 1:21 AM, Linlin Zhou wrote:
Dear Adam,
Thanks for your review. I have my feedbacks started with [Linlin]. I'll update the draft based on your comments.

Regards,
Linlin
________________________________
zhoulinlin@cnnic.cn<mailto:zhoulinlin@cnnic.cn>

From: Adam Roach<mailto:adam@nostrum.com>
Date: 2018-07-28 07:04
To: draft-ietf-regext-org-ext<mailto:draft-ietf-regext-org-ext@tools.ietf.org>; regext@ietf.org<mailto:regext@ietf.org>
Subject: [regext] AD Review: draft-ietf-regext-org-ext-07
This is my AD review for draft-ietf-regext-org-ext-07.  I have a handful of
comments below that I'd like to see addressed prior to asking the IESG to
consider the document. Please treat them as you would any other last-call
comments.

There are also two blocking comments that need to be resolved prior to
IETF last
call.

Thanks to everyone who worked on this document.

---------------------------------------------------------------------------

This is a blocking comment.

This document raises the same question as draft-ietf-regext-org-08 does
regarding the allowable placement of XML namespace declarations within the
document; see, e.g., the following text:

>  In addition to the EPP command elements
>  described in the EPP object extensions, the command MUST contain an
>  <extension> element, and the <extension> element MUST contain a child
>  <orgext:create> element that identifies the extension namespace if
>  the client wants to associate data defined in this extension to the
>  object.

I presume the same answer will apply to this document as does to
draft-ietf-regext-org-08.

Affected elements appear to also include <orgext:update> and
<orgext:infData>.

[Linlin] Please see my feedback in the reply of org draft. Thanks.


I assume we'll resolve this the same way in both documents.

[Linlin]  I've updated some words. Please see the feedback of org draft.

---------------------------------------------------------------------------

This is a blocking comment, as it impacts interoperability.

§4.2.5:

This section defines remove and change elements that use "role" as a key. It
is unclear whether an attempt to remove or change an identifier
corresponding to
a role that is not present in the object results in an error, or is
treated as
success.

For example, if an "example.com" is currently in the system as a
reseller, but
is *not* in the system as a privacyproxy, would an update containing the
following elements return a success response or an error response?

   C:      <orgext:update
   C:        xmlns:orgext="urn:ietf:params:xml:ns:orgext-1.0">
   C:        <orgext:rem>
   C:          <orgext:id role="privacyproxy"/>
   C:        </orgext:rem>
   C:      </orgext:update>

If the answer is that an error is returned, then that error needs to be
clearly
specified in this document.

[Linlin]I think an error should be returned.


Okay -- we need to say which error code to use, then.




The same question needs to be answered for <orgext:chg>.


Is the answer the same for <orgext:chg> as for <orgext:rem>?



Similarly, if <orgext:add> is issued for a role that already exists in the
object, does this result in an error, or is the existing role identifier
silently overridden?


This question also needs an answer.




If the answer to "is this an error" is "yes" for any or all of the
preceding questions: this document needs to clearly spell out what
happens when
an <orgext:...> element contains multiple <orgext:id> elements, and
*some* of
them cause an error while *some* of them do not.


This also still needs to be addressed. For example:
If "example.com" is currently in the system as a reseller, but is *not* in the system as a privacyproxy, what would the following command do?

   C:      <orgext:update
   C:        xmlns:orgext="urn:ietf:params:xml:ns:orgext-1.0">
   C:        <orgext:rem>
   C:          <orgext:id role="reseller"/>
   C:          <orgext:id role="privacyproxy"/>
   C:        </orgext:rem>
   C:      </orgext:update>


This could do any of the following, and the document needs to be clear which one actually happens:



  1.  The command succeeds, and the "reseller" ID is removed from "example.com"
  2.  The command fails because "privacyproxy" doesn't exist as an ID on "example.com." No changes are made.
  3.  The command partially succeeds: the "reseller" ID is removed from "example.com," but the response is an error message because "privacyproxy" could not be returned.

The semantics around #3 are very complicated, since you'll ultimately need to indicate which part of the command succeeded and which part failed, so you probably want to pick #1 or #2. Given your answer above that removing a non-existent orgext-ID from an object is a failure, I think #2 is the most consistent. But this needs to be clearly specified.




Finally, if the <orgext:add> and <orgext:chg> elements do not result in
errors
in the cases described above, then this document should clearly specify how
processing is different between those two elements, or clearly specify that
handling of both elements is identical.

[Linlin] So is it ok to add some words like "An EPP error response MUST be returned if an <update> command cannot be processed for any reason." ?


That's really not enough. You need to be very clear about what "cannot be processed" means. And, since you have commands that perform more than one operation at the same time, you need to be very clear about handling when one of those operations would be okay, but the other one is not.

I don't want to tell you how to resolve each of these issues; but, based on the one answer you gave above (about removing a non-existent ID), the following clarifications would be consistent:


  1.  An attempt to remove an ID that does not exist results in an error with a result code of UUUU
  2.  An attempt to change an ID that does not exist results in an error with a result code of VVVV
  3.  An attempt to add an ID that *does* already exist results in an error with a result code of WWWW
  4.  An attempt to remove more than one ID where at least one of them does not exist does not change the object at all, and results in an error with a result code of XXXX
  5.  An attempt to change multiple IDs where at least one of them does not exist does not change the object at all, and results in an error with a result code of YYYY
  6.  An attempt to add multiple IDs when at least one of them already exists does not change the object at all, and results in an error with a result code of YYYY

You will need to say all six things. Also, for #4, #5, and #6, you'll need to think about whether there is any way for the client to know which ID caused the operation to fail

Note that the result codes above might be the same as each other or different from each other. I have no opinion on which is better, as I'm not familiar with the philosophy of how result codes are used in EPP.

[Linlin] Thanks for your suggestions. Adding some words at the end of this section. I think error codes 2302 and 2303 defined in RFC5730 could be used.

An EPP error response MUST be returned if an <update> command cannot be processed for any reason.

An attempt to add an organization ID that does already exist results in an error with a result code of 2302. An attempt to add multiple organization IDs when at least one of them already exists does not change the object at all, and results in an error with a result code of 2302.

An attempt to remove an organization ID that does not exist results in an error with a result code of 2303. An attempt to remove more than one ID where at least one of them does not exist does not change the object at all, and results in an error with a result code of 2303.

An attempt to change an ID that does not exist results in an error with a result code of 2303. An attempt to add multiple IDs when at least one of them already exists does not change the object at all, and results in an error with a result code of 2303.

If we want to identify which ID is the failing one, I think maybe we need to extend the <update> response. Something like this,

   S:<?xml version="1.0" encoding="UTF-8" standalone="no"?>
   S:<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
   S:  <response>
   S:    <result code="2302">
   S:      <msg>Object exists</msg>
   S:    </result>
   S:    <resData>
   S:      <org:updData xmlns:org="urn:ietf:params:xml:ns:orgext-1.0">
   S:        <org:id>res1523</org:id>
   S:      </org:updData>
   S:    </resData>
   S:    <trID>
   S:      <clTRID>ABC-12345</clTRID>
   S:      <svTRID>54321-XYZ</svTRID>
   S:    </trID>
   S:  </response>
   S:</epp>


<element name="updData" type="orgext:updDataType"/>

 <complexType name="updDataType">
      <sequence>
        <element name="id" type="eppcom:clIDType"  minOccurs="0"/>
      </sequence>
  </complexType>

---------------------------------------------------------------------------




The resolution to the remaining issues all seem fine to me. Thanks.

/a