Re: [netmod] [Technical Errata Reported] RFC6020 (4911)
Martin Bjorklund <mbj@tail-f.com> Wed, 18 January 2017 14:44 UTC
Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3EB4B1293DF for <netmod@ietfa.amsl.com>; Wed, 18 Jan 2017 06:44:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.1
X-Spam-Level:
X-Spam-Status: No, score=-5.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 sLgq38gGm5WQ for <netmod@ietfa.amsl.com>; Wed, 18 Jan 2017 06:44:17 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id B9BF212985F for <netmod@ietf.org>; Wed, 18 Jan 2017 06:44:14 -0800 (PST)
Received: from localhost (unknown [173.38.220.36]) by mail.tail-f.com (Postfix) with ESMTPSA id 6D2161AE0455; Wed, 18 Jan 2017 15:44:13 +0100 (CET)
Date: Wed, 18 Jan 2017 15:44:12 +0100
Message-Id: <20170118.154412.1767958997070783224.mbj@tail-f.com>
To: lhotka@nic.cz
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <69B83F1A-1FBC-44E9-B499-054966616C11@nic.cz>
References: <20170118114858.62A63B80FFD@rfc-editor.org> <20170118.145532.995038902796253716.mbj@tail-f.com> <69B83F1A-1FBC-44E9-B499-054966616C11@nic.cz>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ZCEBNc5Q_Vi4Lk8DGprAj7203x4>
Cc: netmod@ietf.org, joelja@bogus.com, rfc-editor@rfc-editor.org
Subject: Re: [netmod] [Technical Errata Reported] RFC6020 (4911)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2017 14:44:22 -0000
Ladislav Lhotka <lhotka@nic.cz> wrote: > > > On 18 Jan 2017, at 14:55, Martin Bjorklund <mbj@tail-f.com> wrote: > > > > RFC Errata System <rfc-editor@rfc-editor.org> wrote: > >> The following errata report has been submitted for RFC6020, > >> "YANG - A Data Modeling Language for the Network Configuration > >> Protocol (NETCONF)". > >> > >> -------------------------------------- > >> You may review the report below and at: > >> http://www.rfc-editor.org/errata_search.php?rfc=6020&eid=4911 > >> > >> -------------------------------------- > >> Type: Technical > >> Reported by: Ladislav Lhotka <lhotka@nic.cz> > >> > >> Section: 6.1.3 > >> > >> Original Text > >> ------------- > >> Within a double-quoted string (enclosed within " "), a backslash > >> character introduces a special character, which depends on the > >> character that immediately follows the backslash: > >> > >> \n new line > >> \t a tab character > >> \" a double quote > >> \ a single backslash > >> > >> > >> Corrected Text > >> -------------- > >> Within a double-quoted string (enclosed within " "), a backslash > >> character introduces a special character, which depends on the > >> character that immediately follows the backslash: > >> > >> \n new line > >> \t a tab character > >> \" a double quote > >> \ a single backslash > >> > >> The backslash MUST NOT be followed by any other character. > >> > >> Notes > >> ----- > >> The text doesn't state whether other characters may follow the > >> backslash, and if yes, what it means. Existing implementations have > >> used three approaches: > >> > >> 1. report an error if another character follows the backslash > >> 2. keep only the character following the backslash, i.e., for example, > >> "\x" is the same as "x". > >> 3. keep both the backslash and the character following it. > >> > >> This ambiguity is undesirable and YANG 1.1 [RFC 7950] explicitly > >> adopted option #1. However, many modules are still being written using > >> YANG version 1.0, so it is important to clarify this issue in RFC 6020 > >> as well. > > > > I don't think this errata should be accepted. As stated, the spec is > > unclear, and YANG 1.1 has fixed this problem. But it is not clear > > that the original intention when RFC 6020 was written was #1. > > Accepting this errata now would make existing implementations and > > modules invalid. > > The problem is that the spec is clearly ambiguous Agreed. > and it is > impossible to decide whether such a module is valid or not and, if > it is, what the other backslash-escaped characters mean. Existing > implementations can already reject such modules - the fact that > pyang (and probably other tail-f tools) adopted one interpretation > doesn't mean that everybody does the same. This is exactly my point. > > The solution moving forward is to use YANG 1.1. > > > > YANG 1.0 modules continue to be written, and I think it is important > to stop this problem from spreading further. I think tools should > at least issue a warning because otherwise future upgrades to YANG > 1.1 may become a nightmare - modules will suddenly break in > unexpected places. Sure, but that's a different story (I already added a warning for this in pyang). > If this erratum is rejected, what is the basis for accepting erratum > #4909 that started this discussion? That module relied on one interpretation, but as you write, the spec is unclear and toold behave differently. Thus, modules should avoid this pattern. /martin
- Re: [netmod] [Technical Errata Reported] RFC6020 … Martin Bjorklund
- [netmod] [Technical Errata Reported] RFC6020 (491… RFC Errata System
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Martin Bjorklund
- Re: [netmod] [Technical Errata Reported] RFC6020 … Robert Wilton
- Re: [netmod] [Technical Errata Reported] RFC6020 … William Lupton
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Juergen Schoenwaelder
- Re: [netmod] [Technical Errata Reported] RFC6020 … Phil Shafer
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Lou Berger
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Juergen Schoenwaelder
- Re: [netmod] [Technical Errata Reported] RFC6020 … Martin Bjorklund
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Juergen Schoenwaelder
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Martin Bjorklund
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Robert Wilton
- Re: [netmod] [Technical Errata Reported] RFC6020 … Lou Berger
- Re: [netmod] [Technical Errata Reported] RFC6020 … Ladislav Lhotka
- Re: [netmod] [Technical Errata Reported] RFC6020 … Juergen Schoenwaelder
- Re: [netmod] [Technical Errata Reported] RFC6020 … Benoit Claise
- Re: [netmod] [Technical Errata Reported] RFC6020 … Lou Berger