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

Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Fri, 24 March 2017 15:53 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 20E00129481 for <regext@ietfa.amsl.com>; Fri, 24 Mar 2017 08:53:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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_NONE=-0.0001, SPF_PASS=-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 OzdjP13I_N8t for <regext@ietfa.amsl.com>; Fri, 24 Mar 2017 08:53:07 -0700 (PDT)
Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 0BFB0126CE8 for <regext@ietf.org>; Fri, 24 Mar 2017 08:53:07 -0700 (PDT)
Received: by mail-wr0-x22f.google.com with SMTP id u1so4485425wra.2 for <regext@ietf.org>; Fri, 24 Mar 2017 08:53:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:in-reply-to:references:mime-version:content-transfer-encoding :subject:to:cc:from:message-id; bh=DYfv79EYoHz5IfyR7ReEhKEWpC0Eqf4a9mmio0qT/+E=; b=WgO6L2GoFoGUW8xpfPZSGfdXrLdaEjVdpfSaKN1TPPhIM/+cELRVVkXfNfJGEF8x62 uDEeXU6dezX0lJ3OITuEMb2ezZvnFtIl6ubteNHVO54xYWgQB0DYOCywL9ectmdoInBl Qc/L9kg/3KgE73qDXfEeO2yXPqlj2uoIgxjkOEvdSJ1H2PDg+Lv3iMuS03RR9NGvuroz aEaDIsE+uwgaVi4RxIlNouiyLD6w4F4EkyHOPg3mup/yXGpZvVgROJdLJLBlIPKo03Bc jb++eq0qvApbpKa0g2atWXOftk9paEqSF+Ckdi3tMQzP5wOcoL0nZhIviU2zPIFJRexL pOcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=DYfv79EYoHz5IfyR7ReEhKEWpC0Eqf4a9mmio0qT/+E=; b=AlSGkJf17iiWlUog5l8u4Y5Myqg6NBtroCOkVAf1cP2G81QvUpICU4B6gV9jVftv3C J/b5NoEiYeeC8aUTzVV7u+v+CdiuE0JkM2pqx0cPOJ4bGXxWDZlzuCURY+RYQXa7LVGJ zb0Ne8g4rq1qjAQwAs++LPEqAhRclXPuXLPoJjnZjb/aS7lWbf9qEca53fuGK1ijpdmK lCIxZdaEugiiweAzcAiB5ZEKGR9X+OPrSbUc3RsDRUyCRNRvw24jUg7TzlrCD4rT9T/a O/GQH4t4G2qP8BTM69yXqfyEfYzX4fAnyVfLxZZG2s6V4DEkXVXp1LeosS5O6s2IG60t YnsA==
X-Gm-Message-State: AFeK/H1w6BE9oGMIGD58G77Nk2mudf5BJCOixSC66z8j9FGqq8thAVfNptEyqWge0yadLw==
X-Received: by 10.223.134.157 with SMTP id 29mr8212803wrx.33.1490370785474; Fri, 24 Mar 2017 08:53:05 -0700 (PDT)
Received: from Galaxy-S7-B.weghof (212-60-176-31.adsl.highway.telekom.at. [212.60.176.31]) by smtp.gmail.com with ESMTPSA id b13sm2939434wmf.6.2017.03.24.08.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 08:53:04 -0700 (PDT)
Date: Fri, 24 Mar 2017 16:52:25 +0100
In-Reply-To: <8e1c7a2d-19ec-5be0-233f-dae734cb1c33@knipp.de>
References: <148901468989.20175.4288046986031713790@ietfa.amsl.com> <7efca86c-ac79-c835-76d4-b9ee1e93c0e7@knipp.de> <CAC1BbcSTz7ZLPeJbbNdgMPy0p2KGB4rA17hF+vXzVmViRM458A@mail.gmail.com> <8e1c7a2d-19ec-5be0-233f-dae734cb1c33@knipp.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
To: Thomas Corte <Thomas.Corte@knipp.de>
CC: regext <regext@ietf.org>
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Message-ID: <E5F5AAFD-BAEA-40CA-8282-621A9CBEDF68@gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/regext/5RRsL1Lbv_ve2YwTwfSYcm12S6Q>
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: Fri, 24 Mar 2017 15:53:09 -0000

On 24 March 2017 11:05:44 CET, Thomas Corte <Thomas.Corte@knipp.de> wrote:
>Hello Bernhard,
>
>On 23/03/2017 16:04, Bernhard Reutner-Fischer wrote:
>
>> 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.
>
>I see, however it seems futile to have these two levels of checking...
>the server-supported currencies are obviously a subset of the globally
>available currencies, so any currency not present in the long list is
>bound to be rejected later on when the server checks for support.
>
>If at all, I'd probably rather like to see the restriction to existing
>currencies done via the schema, i.e. by an explicit enumeration of
>valid
>values in the XSD.

That's what normative references are for IMHO. You wouldn't want to update the fee RFC if someone invents a new currency.

You might want to throw an error if someone configures the server to use a new/typoed currency and always 2306 when receiving a currency outside of the configured enumeration, thus ignoring 2004 completely at runtime.

cheers,