Re: [regext] draft-ietf-regext-epp-fees-02.txt: currency error handling, command wildcard

Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Thu, 23 March 2017 15:04 UTC

Return-Path: <rep.dot.nop@gmail.com>
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 AB8CC120727 for <regext@ietfa.amsl.com>; Thu, 23 Mar 2017 08:04:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 dKkL4USqskMZ for <regext@ietfa.amsl.com>; Thu, 23 Mar 2017 08:04:01 -0700 (PDT)
Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com [IPv6:2607:f8b0:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 96E29129476 for <regext@ietf.org>; Thu, 23 Mar 2017 08:04:01 -0700 (PDT)
Received: by mail-vk0-x229.google.com with SMTP id d188so148080905vka.0 for <regext@ietf.org>; Thu, 23 Mar 2017 08:04:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bsQ2m4G8QWEjFR9E8PYTBFoFWYE9qNoyhBTIz+HvJMk=; b=ai88PlE04TfsEITDCIw+II4N05+7Py/orFS5dxp/BR8cRlMEEfx9Apnu3MZHViKsyB mZf5Hu0e1Efz7prehOzuNEQHdjAQRPhEeV7Z3pzGYzcqxNkdab+Ml4kne099Hy1uqLvS Gwd/Hx4lD0JnLtzkkOK1q5+Sw+jrSVgSKLyc3SA9ybfphJTzoVUXTTu3nQTSQKVKLPCO IUH9V35+eF52eemIAvmEY+u1Zfqf41EzGiNPyVBAz5ZmPTTkz3JcjErcbthFEQffZF/O 8y2gJVD6By7OhOiIkmHouzTdqR8MGiuf+JKbgz5a5r4pKX58Z0a6mFsnCVpYnYgfxNIh wWTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bsQ2m4G8QWEjFR9E8PYTBFoFWYE9qNoyhBTIz+HvJMk=; b=cjIJWeVmfO7h3B3G5nt3nHcaGS/fiJs2isRvsZLElebDnyX0mKCFkf1AgRUFrPzHV0 358b6qxIFH8tFDH/niCCEYpoAokMMZ+iAjs2G4gImqIPLRUsifypdG37Pu+YEbHtIys2 rpUNrKgmdHK0Zegx/ApsVXkI2Q4ihGEWIokJjyG9U72JKUQFDQisRdqAxFSQv5kN2ajj pVTFQtmwgm3IMS1JOUVmcedqIXpMO0T9Mza1Rx2HsoGsjR7BYMlZzjKPaj7Enh2PdZeW ox6h5xiD/sGMRx33ZyuaWDOTqRHwc/uwJr1oms9ABcHOp1NQA5P98t1M2CkFcimpjxpA lNkQ==
X-Gm-Message-State: AFeK/H0y0wa2kjc5F6NUih69ByTLZVZezULRYbhObVQ6fvK4PkLZ7larCDt2foDQhf4VNrip7Yf/bKXXjtEMyw==
X-Received: by 10.31.148.71 with SMTP id w68mr1110192vkd.87.1490281440586; Thu, 23 Mar 2017 08:04:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.159.48.133 with HTTP; Thu, 23 Mar 2017 08:04:00 -0700 (PDT)
In-Reply-To: <7efca86c-ac79-c835-76d4-b9ee1e93c0e7@knipp.de>
References: <148901468989.20175.4288046986031713790@ietfa.amsl.com> <7efca86c-ac79-c835-76d4-b9ee1e93c0e7@knipp.de>
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Thu, 23 Mar 2017 16:04:00 +0100
Message-ID: <CAC1BbcSTz7ZLPeJbbNdgMPy0p2KGB4rA17hF+vXzVmViRM458A@mail.gmail.com>
To: Thomas Corte <Thomas.Corte@knipp.de>
Cc: regext <regext@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/pyGPXJ39NT6zcdZEo5FSOiThfVE>
Subject: Re: [regext] draft-ietf-regext-epp-fees-02.txt: currency error handling, command wildcard
X-BeenThere: regext@ietf.org
X-Mailman-Version: 2.1.22
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 Mar 2017 15:04:07 -0000

On 22 March 2017 at 12:08, Thomas Corte <Thomas.Corte@knipp.de> wrote:

> 1) There seem to be contradictory requirements regarding the handling of
> invalid currency codes. In section 3.2, the draft says:
>
>   "Servers SHOULD NOT perform a currency conversion if a client uses an
>    incorrect currency code.  Servers SHOULD return a 2004 "Parameter
>    value range" error instead."
>
> However, in 5.1.1, it says:
>
>      "An OPTIONAL <fee:currency> element.  If the server does not
>       support <fee:currency> value, it MUST return a 2306 error
>       response;"
>
> Further below, the draft offers a third option:
>
>   "The <fee:command> element also has an OPTIONAL "avail" attribute
>    which is a boolean.  If the value of this attribute evaluates to
>    false, this indicates that the server cannot calculate the relevant
>    fees, because the object, command, currency, period or class is
>    invalid according to server policy."
>
> So this would indicate that an invalid currency in a <fee:check> should
> not result in an EPP error at all, but merely cause a non-available fee
> check result (an option which I would prefer).
>
> I believe this requires some unification, or clarification as to when to
> use which code (in the responses to transform commands at least), or when
> to use avail="false".

In my view 2004 is more on the protocol-layer, i.e. value supplied not in
curl -s -o- https://www.currency-iso.org/dam/downloads/lists/list_one.xml | \
 sed -n -e "/<Ccy>/s/.*>\([^<]*\)<.*/\1/p" | sort | uniq | tr "\n" " "

2306 is a policy violation, i.e. may be a valid currencyType but is
not supported by your registry.

HTH,