Re: [Ecrit] Barry Leiba's Discuss on draft-ietf-ecrit-data-only-ea-21: (with DISCUSS and COMMENT)

Adam Roach <adam@nostrum.com> Sun, 23 February 2020 22:43 UTC

Return-Path: <adam@nostrum.com>
X-Original-To: ecrit@ietfa.amsl.com
Delivered-To: ecrit@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6C723A112D; Sun, 23 Feb 2020 14:43:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.403
X-Spam-Level:
X-Spam-Status: No, score=-1.403 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, KHOP_HELO_FCRDNS=0.276, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=nostrum.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 e9snFuwJvhcg; Sun, 23 Feb 2020 14:43:05 -0800 (PST)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 ADB2F3A112B; Sun, 23 Feb 2020 14:43:02 -0800 (PST)
Received: from [172.17.121.48] (99-152-146-228.lightspeed.dllstx.sbcglobal.net [99.152.146.228]) (authenticated bits=0) by nostrum.com (8.15.2/8.15.2) with ESMTPSA id 01NMgvmu049699 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 23 Feb 2020 16:42:58 -0600 (CST) (envelope-from adam@nostrum.com)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nostrum.com; s=default; t=1582497779; bh=z16Yyl9QfIqvgzX9dzMjXmQG4Qutsn9KScfeszn4hOs=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=I11UdHTIFBQqh2BNbRuW/UuNjLH2hhp2uBDrlM+KTjwn1nEWqn0jnmZV6ZxRWBxC2 fYlqguMMRC8SA4i4oJ4HCN4Yq4xvoQNOa/RR5pENj+vEoQHDjS77uvB3HllFKZkXLk EJT3rrOVJR2mGmYb/AbQwDDl5WMHZazBmGwxTtjI=
X-Authentication-Warning: raven.nostrum.com: Host 99-152-146-228.lightspeed.dllstx.sbcglobal.net [99.152.146.228] claimed to be [172.17.121.48]
To: Barry Leiba <barryleiba@computer.org>, The IESG <iesg@ietf.org>
Cc: allison.mankin@gmail.com, ecrit-chairs@ietf.org, ecrit@ietf.org, draft-ietf-ecrit-data-only-ea@ietf.org
References: <158248833928.1204.4586965683473226473.idtracker@ietfa.amsl.com>
From: Adam Roach <adam@nostrum.com>
Message-ID: <9ab55a5d-8788-f407-1166-ea6e0b690b21@nostrum.com>
Date: Sun, 23 Feb 2020 16:42:51 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
MIME-Version: 1.0
In-Reply-To: <158248833928.1204.4586965683473226473.idtracker@ietfa.amsl.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/ecrit/-7-90m38WRBZEKMxx_SMd5-WTmI>
Subject: Re: [Ecrit] Barry Leiba's Discuss on draft-ietf-ecrit-data-only-ea-21: (with DISCUSS and COMMENT)
X-BeenThere: ecrit@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ecrit.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ecrit>, <mailto:ecrit-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ecrit/>
List-Post: <mailto:ecrit@ietf.org>
List-Help: <mailto:ecrit-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ecrit>, <mailto:ecrit-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 23 Feb 2020 22:43:08 -0000

On 2/23/2020 2:05 PM, Barry Leiba via Datatracker wrote:
> — Section 5.2 —
>
>        ErrorValue       =  error-code
>                                 *(SEMI error-params)
> …
>     The ErrorValue contains a 3-digit error code indicating what was
>     wrong with the alert in the request.  This error code has a
>     corresponding quoted error text string that is human readable.  The
>     text string is OPTIONAL, but RECOMMENDED for human readability,
> …
>     Similar to how RFC
>     3261 specifies, there MUST NOT be more than one string per error
>     code.
>
> Two things about this:
>
> 1. The ABNF makes the text string optional only by allowing zero or more of
> them (so zero is allowed).


This is true. Is this a problem? A production like [*(SEMI 
error-params)] seems redundant.


> 2. The ABNF allows multiple text strings, but the text says that there MUST NOT
> be more than one.
>
> So, shouldn’t the ABNF be this (and if not, why not)?:
>
> NEW
>        ErrorValue       =  error-code [SEMI error-params]
> END


The production is like it is in the current document because 
"error-params" is not _just_ the error code text. It is defined as 
"error-code-text / generic-param", which is a common way to define SIP 
header fields so that future extensions fit the ABNF in a 
backwards-compatible way (by matching "generic-param").

If, for some reason, you wanted the ABNF to explicitly reflect the prose 
you're citing, it would end up looking like:

Errorvalue = *(SEMI generic-param) [SEMI error-code-text] *(SEMI 
generic-param)

But that's really unnecessarily prolix, and it doesn't even technically 
provide any enforcement, since "error-code-text" also matches 
"generic-param".

What it comes down to is that this is one of the cases, common in SIP, 
where the decision was made to make the ABNF easy-to-read, and to 
provide enforcement of any semantic restrictions as part of the 
normative language rather than attempting to use syntax to do so.

/a