Re: [netconf] [Technical Errata Reported] RFC8040 (6342)

Muly Ilan <muly_i@rad.com> Mon, 23 November 2020 11:31 UTC

Return-Path: <muly_i@rad.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 955E23A08BD for <netconf@ietfa.amsl.com>; Mon, 23 Nov 2020 03:31:48 -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=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rad365.onmicrosoft.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 tNGqSRoEr6BD for <netconf@ietfa.amsl.com>; Mon, 23 Nov 2020 03:31:46 -0800 (PST)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2072.outbound.protection.outlook.com [40.107.21.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 11DE53A0820 for <netconf@ietf.org>; Mon, 23 Nov 2020 03:31:45 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BacFpbBMVgufGlOl6qEJv1S6LK2NrGi1g68kjgCWYIkBKTq1WtA4UUvJG1z7MaabyG6QYycSeP3zl8hrPv47dQ0TtQgD3MoNW575sQz2DjqrjJH+r5sZfGCgt6n3oSZM+n7E51/HVC+UYkcBBWrZayvCTkIY6/N477qRZedLt7aDJ0v7HtuEcJvVdILYgarkp85UTk52pn3VC6ZseXjXEMlLbI3AXwudhTiZVh9GBQa7iObWYZtpPSgkbdghE8k1ak4r4SrfbGm0JUzwVKUpfNOarbeVek4WNEHghyZgJZ5gKkeV3BLfZPi1zfPy0OgsY8+ZPg9yf1yfQJiaNEBjMQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XbkFBRmxuk6UcmVP9pfoHwHwpybuitnywrA3E9nf9TM=; b=ips3qez95CkR9eLDicbDODsB171DHzeyMBE5gRlRpwJfx7DILNAhkzrq2Pbsi7RqnaDVwYzrBvhWqXbTYjHawLymElYrT+w9fAvuFSn4GM1Xx6WxQu3wQ0MdBCHFBoN7j4yFX9Fby2vWNY3j0g6OpS1edFzKDmoU+5JJbYgzxyR810yzHxCVVSQXa28Ic/woqozL1RrBOSjeQStzN7UG87CEEmjjGd+mn27u6zZWml+bkJs7FxLJmB0Jw/cmBpCmPATjPxkxAmkqgU3fzkyruBSvP6yibsDQRzPnvJ2ix/qF0REGVpCaysxSumMzUbOn5Vi5W9rynGxdPjf2w2bNsQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=rad.com; dmarc=pass action=none header.from=rad.com; dkim=pass header.d=rad.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rad365.onmicrosoft.com; s=selector1-rad365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XbkFBRmxuk6UcmVP9pfoHwHwpybuitnywrA3E9nf9TM=; b=HhVhfYNZ+0Z1rDKJOadRQOP5JvU+ksN88yihEixaxBIiNI/YIYgbAUohCbEwxjOS9bo/FrrCJKtG2FGoeVIXRshbVy7nlQO4JeRUkkL0pkN2Mf9Zd9lgb6LW9T8uoxZAcsaPtz9NJOP/+RFMsr6ttnFcX3JC/C4yQOYzFaCtCfI=
Received: from AM0PR0302MB3348.eurprd03.prod.outlook.com (2603:10a6:208:b::19) by AM9PR03MB6787.eurprd03.prod.outlook.com (2603:10a6:20b:286::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.22; Mon, 23 Nov 2020 11:31:43 +0000
Received: from AM0PR0302MB3348.eurprd03.prod.outlook.com ([fe80::eccb:ec09:89e2:cd70]) by AM0PR0302MB3348.eurprd03.prod.outlook.com ([fe80::eccb:ec09:89e2:cd70%5]) with mapi id 15.20.3589.025; Mon, 23 Nov 2020 11:31:43 +0000
From: Muly Ilan <muly_i@rad.com>
To: Martin Björklund <mbj+ietf@4668.se>, "rfc-editor@rfc-editor.org" <rfc-editor@rfc-editor.org>
CC: "kwatsen@juniper.net" <kwatsen@juniper.net>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] [Technical Errata Reported] RFC8040 (6342)
Thread-Index: AQHWwRzkciHC9EbDXEyiRm/auJwoyqnVZYeAgAAuWgA=
Date: Mon, 23 Nov 2020 11:31:43 +0000
Message-ID: <AM0PR0302MB3348EBB2C0F57E3B4FD8D7F7F9FC0@AM0PR0302MB3348.eurprd03.prod.outlook.com>
References: <20201122221445.1E11FF4071F@rfc-editor.org> <20201123.093729.325420538444196813.id@4668.se>
In-Reply-To: <20201123.093729.325420538444196813.id@4668.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: 4668.se; dkim=none (message not signed) header.d=none;4668.se; dmarc=none action=none header.from=rad.com;
x-originating-ip: [185.223.3.181]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 6937bfb1-f793-4c79-c702-08d88fa35a93
x-ms-traffictypediagnostic: AM9PR03MB6787:
x-microsoft-antispam-prvs: <AM9PR03MB6787688E2505970BCCCFA403F9FC0@AM9PR03MB6787.eurprd03.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Wqgm4FyRRxKXpdb+2pCfewKvsN0KFfu2coEK7Wu/+VeaJk7aHMed5Lh0duIoCtLduFj6FcUgVsxn07V2XVWUshy9WZJDyCSjVIVKT47gL5/y+HzX9trrufrSYeo48Ctv8D9WgryvFOaknZuXq2+5SlcIgayT9uONpP5EmhtIC2gGKw/OGUc0qgYS7gp6BVfVmy37MRAHwiH7/PKyppY5OfTsLANa9qZfJGYjmxp9I116r/FcIzufuPfau1SziSjBxccr0aTyyLIIuAwEOnXkz1BcSzkcwRaErONqpkvBP4GnnB1eBzRoqvL7Zwqnqip+xMka4RzQbuv/LV6TaGEO2UmwQSrUwrTSwwC3vzwvn314RUlehsGlhxh9EaUM0LDHdxTPVSmq7gttiwdL8WopUw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR0302MB3348.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39850400004)(136003)(346002)(366004)(376002)(2906002)(4326008)(8676002)(110136005)(66446008)(66556008)(66476007)(64756008)(76116006)(71200400001)(54906003)(66946007)(45080400002)(52536014)(55016002)(316002)(83380400001)(9686003)(186003)(26005)(7696005)(478600001)(86362001)(33656002)(5660300002)(8936002)(966005)(6506007)(53546011); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: RoBsz1KbdrJxMxPoCGV8HhSbrqvca2PX4pfaGeszqA3bjVGsrcSL6Vfa/YPDqumang8ljD/+7lvSzUpmM7Ni0L5CbpKcKAq/5ydYscZ/auXsT31s2W9pB8PzC2T3f1MguvoTQ8y4YhMNdTLXEC8H+XPmP3S0ViybGwuDkrMlT6uwbg9B1IifouVncqKu4ESeobUlqI963jp2QqQ9w2HUpD7Db3ifw6eNGEFMKeIffHY9Q/ljn9gisRZpi2oFrGPj7yiD3KOzwbGJ6KEcqEjQXwsTlLB18aP2Ukt+tuRPi4MAIrdmeHr9FS2ElAAYDA3XtAjNjcwtE7qgBg4gjERRa7MY44dLQSTc+uzqz/XpH9/9BxcKGYDwtR2hpdO8UKyicHnjFW/4zqIrYYOsqEg/oPi6DvFAHj7AiZBFBeIIcAFtHVxD4N+49EuHDQ2woWlKdpjytNdeHDx4KVpDOBdmxCuCk18H1TTPTVu59NQs2y7nw/32EDjeoA+oJbJosjQ7TSMineAUpiQqxFmU/qLMoASOFV97dmZanM+SLGO2sdLV6FFaJm2X39TyDG7C0V3oOKbJQTw7LQKAxNaL0326Hp1WM9hf4ofU6UAVI++sff388fQ1dtzrWLo/acinVmcXoC8y8Ftjfj+sbh9GikZ8xf4+gvJi5TSKhviMjbs2d/66ZBbFl7iFT7iO0mg/h9GKDnv55nFYVgTUFe6xv7V881JmFVcZ4Nhp01CD2eurcgkBLBptBSDhBpsH4MVeX3KncqiXTfoWs78SIXQjcjzabbWbgWi/50KeZ5Hfe5l9JaDEaSfVgwIF7LysA/9/PHt1Wgi4eHMFLX++B3hgzd4kZXGI42F/1bef3vglvY4gjupm8/s//gZQz5ZyCOdCd93dv+7zBeyW6fqJglPc+rbuzQ==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: rad.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM0PR0302MB3348.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6937bfb1-f793-4c79-c702-08d88fa35a93
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2020 11:31:43.3802 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f9047108-cc2c-4e48-97a3-43fad1b3bf9d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 0hjQL5S8EXpRhsMLp+QYPXPAO0pwDOSSiCEgQcwnkC5b9/cPKNNBBKpwv0UpKSpU
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB6787
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/rD25-2NqZmhk0wQ4c9F23_kSOwY>
Subject: Re: [netconf] [Technical Errata Reported] RFC8040 (6342)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/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: Mon, 23 Nov 2020 11:31:49 -0000

Hi,

If list keys are not required in message body for plain PATCH then they are also not required for the PUT method.
But the example for PUT in section 4.5 is:

PUT /restconf/data/example-jukebox:jukebox/\
library/artist=Foo%20Fighters/album=Wasting%20Light HTTP/1.1
Host: example.com
Content-Type: application/yang-data+json
{
"example-jukebox:album" : [
{
"name" : "Wasting Light",
"genre" : "example-jukebox:alternative",
"year" : 2011
}
]
}

So, do we want consistency between PUT and plain PATCH?

I believe consistency is important and currently the RFC contains two inconsistent examples.


Best,

Muly


-----Original Message-----
From: netconf [mailto:netconf-bounces@ietf.org] On Behalf Of Martin Bj?rklund
Sent: 23/11/2020 10:37
To: rfc-editor@rfc-editor.org
Cc: kwatsen@juniper.net; netconf@ietf.org
Subject: Re: [netconf] [Technical Errata Reported] RFC8040 (6342)

Hi,

The issue boils down to if list keys are required in a plain patch.
Unfortunately, the RFC doesn't specifucy this.  From a technical pow, list keys are not necessary.  In fact, if they are present in the payload, they are redundant (since they are part of the URL) (this is actually mentioned in the RFC).

Since it isn't clearly specified, I think we must assume that the keys are not required.  Hence I think that this errata should be rejected.

In a future version of this document, the behaviour should be clarified.


/martin


RFC Errata System <rfc-editor@rfc-editor.org> wrote:
> The following errata report has been submitted for RFC8040, "RESTCONF 
> Protocol".
> 
> --------------------------------------
> You may review the report below and at:
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> rfc-editor.org%2Ferrata%2Feid6342&amp;data=04%7C01%7Cmuly_i%40rad.com%
> 7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3bf9d%
> 7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwM
> DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2nm
> LthW5HkwRvJZi%2F2Pj6%2B9qkLV9gV55wiBpIoiC%2FD4%3D&amp;reserved=0
> 
> --------------------------------------
> Type: Technical
> Reported by: Muly Ilan <muly_i@rad.com>
> 
> Section: 4.6.1
> 
> Original Text
> -------------
> To replace just the "year" field in the "album" resource (instead of 
> replacing the entire resource with the PUT method), the client might 
> send a plain patch as follows:
> PATCH /restconf/data/example-jukebox:jukebox/\
> library/artist=Foo%20Fighters/album=Wasting%20Light HTTP/1.1
> Host: example.com
> If-Match: "b8389233a4c"
> Content-Type: application/yang-data+xml <album 
> xmlns="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%
> 2Fexample.com%2Fns%2Fexample-jukebox&amp;data=04%7C01%7Cmuly_i%40rad.c
> om%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3bf
> 9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
> AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=
> hxW6LA8t%2BNRka2GGRqRNsTnK2itYH1rRLnOxU7JbNlc%3D&amp;reserved=0">
> <year>2011</year>
> </album>
> 
> Corrected Text
> --------------
> To replace just the "year" field in the "album" resource (instead of 
> replacing the entire resource with the PUT method), the client might 
> send a plain patch as follows:
> PATCH /restconf/data/example-jukebox:jukebox/\
> library/artist=Foo%20Fighters/album=Wasting%20Light HTTP/1.1
> Host: example.com
> If-Match: "b8389233a4c"
> Content-Type: application/yang-data+xml <album 
> xmlns="https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%
> 2Fexample.com%2Fns%2Fexample-jukebox&amp;data=04%7C01%7Cmuly_i%40rad.c
> om%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3bf
> 9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
> AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=
> hxW6LA8t%2BNRka2GGRqRNsTnK2itYH1rRLnOxU7JbNlc%3D&amp;reserved=0">
> <name>Wasting Light</name>
> <year>2011</year>
> </album>
> 
> Notes
> -----
> Missing key leaf value in the message-body (<name>Wasting 
> Light</name>)
> 
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please 
> use "Reply All" to discuss whether it should be verified or rejected. 
> When a decision is reached, the verifying party can log in to change 
> the status and edit the report, if necessary.
> 
> --------------------------------------
> RFC8040 (draft-ietf-netconf-restconf-18)
> --------------------------------------
> Title               : RESTCONF Protocol
> Publication Date    : January 2017
> Author(s)           : A. Bierman, M. Bjorklund, K. Watsen
> Category            : PROPOSED STANDARD
> Source              : Network Configuration
> Area                : Operations and Management
> Stream              : IETF
> Verifying Party     : IESG
> 
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> ietf.org%2Fmailman%2Flistinfo%2Fnetconf&amp;data=04%7C01%7Cmuly_i%40ra
> d.com%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b
> 3bf9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4
> wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sda
> ta=GOd8xUYLJ9C69r7aN6rujBhsYFJd05CxiHNXT9YXOZ0%3D&amp;reserved=0

_______________________________________________
netconf mailing list
netconf@ietf.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fnetconf&amp;data=04%7C01%7Cmuly_i%40rad.com%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3bf9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=GOd8xUYLJ9C69r7aN6rujBhsYFJd05CxiHNXT9YXOZ0%3D&amp;reserved=0