Re: [Netconf] Unable to filter strings with leading whitespace - errata on Netconf RFC?
t.petch <ietfc@btconnect.com> Sun, 22 February 2015 11:12 UTC
Return-Path: <ietfc@btconnect.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 060561A1BD9 for <netconf@ietfa.amsl.com>; Sun, 22 Feb 2015 03:12:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.001
X-Spam-Level:
X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[SPF_HELO_PASS=-0.001] autolearn=ham
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 Ooj3DsjAeVB4 for <netconf@ietfa.amsl.com>; Sun, 22 Feb 2015 03:12:49 -0800 (PST)
Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0734.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe00::734]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 951221A1BD2 for <netconf@ietf.org>; Sun, 22 Feb 2015 03:12:48 -0800 (PST)
Received: from pc6 (81.151.167.59) by DBXPR07MB061.eurprd07.prod.outlook.com (10.242.147.14) with Microsoft SMTP Server (TLS) id 15.1.93.16; Sun, 22 Feb 2015 11:07:49 +0000
Message-ID: <00ca01d04e8f$8766de60$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: Balazs Lengyel <balazs.lengyel@ericsson.com>, netconf@ietf.org
References: <54E73CDD.5020409@ericsson.com>
Date: Sun, 22 Feb 2015 10:59:00 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [81.151.167.59]
X-ClientProxiedBy: AMSPR02CA0016.eurprd02.prod.outlook.com (10.242.225.144) To DBXPR07MB061.eurprd07.prod.outlook.com (10.242.147.14)
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
X-Microsoft-Antispam: UriScan:;
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DBXPR07MB061;
X-Microsoft-Antispam-PRVS: <DBXPR07MB0617FC5EACC742F1DB15F60A8280@DBXPR07MB061.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005003); SRVR:DBXPR07MB061;
X-Forefront-PRVS: 04953B1F22
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(199003)(51444003)(189002)(252514010)(51704005)(13464003)(76176999)(81686999)(62236002)(44716002)(1456003)(47776003)(15975445007)(23756003)(66066001)(50986999)(81816999)(77096005)(92566002)(101416001)(68736005)(77156002)(62966003)(64706001)(61296003)(46102003)(42186005)(84392001)(33646002)(50466002)(19580395003)(19580405001)(86362001)(122386002)(44736004)(50226001)(106356001)(40100003)(1556002)(105586002)(87976001)(14496001)(116806002)(97736003)(74416001)(7726001); DIR:OUT; SFP:1102; SCL:1; SRVR:DBXPR07MB061; H:pc6; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en;
Received-SPF: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:DBXPR07MB061;
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2015 11:07:49.5938 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR07MB061
Archived-At: <http://mailarchive.ietf.org/arch/msg/netconf/n5M4kIRmRWe1e8j31UooPekNX8k>
Cc: Peter Labraaten <peter.labraaten@ericsson.com>
Subject: Re: [Netconf] Unable to filter strings with leading whitespace - errata on Netconf RFC?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Feb 2015 11:12:51 -0000
----- Original Message ----- From: "Balazs Lengyel" <balazs.lengyel@ericsson.com> To: <netconf@ietf.org> Cc: "Peter Labraaten" <peter.labraaten@ericsson.com> Sent: Friday, February 20, 2015 1:55 PM > Hello, > I assume that " hello" with the leading space is a perfectly OK value in > Netconf/YANG for a string leaf. I also think that the " hello" string is > not the same as the "hello" string without the space. > However https://tools.ietf.org/html/rfc6241#section-6.2.5 part of the > Netconf RFC says about filtering > > "Leading and trailing whitespace characters are ignored, but any > whitespace characters within a block of text characters are not > ignored or modified." > > IMHO this is an error for YANG string leafs. It is perfectly OK to > convert an integer " 1" into "1" but converting the string " hello" > into "hello" is changing its content. So there should be an errata > stating that for string type content all white space content is > considered during filtering. > > Agree? If you do not agree, how am I supposed to filter for " hello" > instead of "hello"? You can't! I think that the Netconf RFC is very clear. YANG does allow spaces to be significant or not, depending on the quoting (RFC6020 s6.1.3) but Netconf, as you point out, does not. Nor is this an erratum, which would imply that the RFC wrongly (or unclearly) states the consensus of the WG. The text you cite first appears in draft-ietf-netconf-prot-06 in April 2005, following an e-mail from Andy at http://www.ietf.org/mail-archive/web/netconf/current/msg00414.html The earlier text also came from Andy http://www.ietf.org/mail-archive/web/netconf/current/msg00004.html There was a lengthy discourse on subpath filtering between the two but that was about whether to have home-grown filtering, a subset of XPath or full XPath or some combination thereof. Tom Petch > regards Balazs > > > -- > Balazs Lengyel Ericsson Hungary Ltd. > Senior Specialist > ECN: 831 7320 Tel: +36-1-437-7320 > Mobile: +36-70-330-7909 email: Balazs.Lengyel@ericsson.com > > _______________________________________________ > Netconf mailing list > Netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf >
- [Netconf] Unable to filter strings with leading w… Balazs Lengyel
- Re: [Netconf] Unable to filter strings with leadi… t.petch
- Re: [Netconf] Unable to filter strings with leadi… Andy Bierman
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… Andy Bierman
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… Martin Bjorklund
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… t.petch
- Re: [Netconf] Unable to filter strings with leadi… Andy Bierman
- Re: [Netconf] Unable to filter strings with leadi… Balazs Lengyel
- Re: [Netconf] Unable to filter strings with leadi… Juergen Schoenwaelder
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… Juergen Schoenwaelder
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… Balazs Lengyel
- Re: [Netconf] Unable to filter strings with leadi… Ladislav Lhotka
- Re: [Netconf] Unable to filter strings with leadi… Juergen Schoenwaelder
- Re: [Netconf] Unable to filter strings with leadi… Balazs Lengyel
- Re: [Netconf] Unable to filter strings with leadi… t.petch
- Re: [Netconf] Unable to filter strings with leadi… Martin Bjorklund