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

Muly Ilan <muly_i@rad.com> Mon, 23 November 2020 12:26 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 0819C3A0A27 for <netconf@ietfa.amsl.com>; Mon, 23 Nov 2020 04:26:49 -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 nVvdCBa9zNom for <netconf@ietfa.amsl.com>; Mon, 23 Nov 2020 04:26:47 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80057.outbound.protection.outlook.com [40.107.8.57]) (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 EA7953A0CEB for <netconf@ietf.org>; Mon, 23 Nov 2020 04:26:17 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PeNNt2ohsNWlZ9mqi7j/eUI8O6NnlYVv0rD64yJKZyAPFPq5oWVzXjVCIzGatKmzNzuhte8ws5EJZHVzhFMZea+LUSmpIsDeZgQzc8s5sdt6s2ByG2qmdG8NNcMctaonq+itFNHZODgz498bnE+5x6EKV3Q84BGH0Pl1S9UZVyevs8nwXkYMdeFUTgoWT48Zsij5YP1D0p5YLAds+1W9YOZ4UHqRE9CWSocyqsXC7f9kMUku8L2LU3bXeqgbjAv8QlfcfTMg3TDXVPcnemrhMjFJ8qwoDS1N4BowrhnURjgbThc2cXga7hy+qeey/BbDkMb20qaTWTCNiifpXB1FJQ==
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=dER0kToEnxcEH/paeL0aavGwP8ZptPvuhj0oq+Hw7e8=; b=E1p5ciObDRMyc+mP0hcrVjSXNjrqeSc2HKax2Hp4KlhUT57o4RpDf2ymz71N6Nf0ITv+a6IVOEoCNl9q6XtNe/jmEAb0hFzsa4h4JbJDqxEvvSA4UEc6UcmTogpXe8M4p+XhMU4c+KYtZ3HPMjezdoeMNdM8ZYXJJHrPyxHzBWTAa1BC3vssQmTQnVO/bAiQ9svrgBO+IjXyRV9kiyU8jFlnAZTFRR49yFaAaAmNRkkXTSCQdNi1HqFbD9CRT0kK2jbyUVFZQQDUntsbEa7izHh60+3avTqwyi98tNA2qO81V7Ka9zIIM9MHBa0LqSr5LCeRH9tDaOXhfKI+ZMpzbQ==
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=dER0kToEnxcEH/paeL0aavGwP8ZptPvuhj0oq+Hw7e8=; b=WdpI75O3B0yTRY9ApvPJ/3ns30vaMfWFPSjWz3A1QmA5GNwD7VTWtr+0xc/zv2xLEimJqOlYvDSMweiBQTyT3ZvrYtxZTZRebAniFmIgvan9UpfmLFZXZiCBpRm/eImo2MkW43PlCfYoqV4FXUe0QP2v7owPUSNnW4CB37c0f0o=
Received: from AM0PR0302MB3348.eurprd03.prod.outlook.com (2603:10a6:208:b::19) by AM9PR03MB7092.eurprd03.prod.outlook.com (2603:10a6:20b:2da::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.21; Mon, 23 Nov 2020 12:26:15 +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 12:26:15 +0000
From: Muly Ilan <muly_i@rad.com>
To: Martin Björklund <mbj+ietf@4668.se>
CC: "rfc-editor@rfc-editor.org" <rfc-editor@rfc-editor.org>, "kent+ietf@watsen.net" <kent+ietf@watsen.net>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] [Technical Errata Reported] RFC8040 (6342)
Thread-Index: AQHWwRzkciHC9EbDXEyiRm/auJwoyqnVZYeAgAAuWgCAAA5jAIAAAXDw
Date: Mon, 23 Nov 2020 12:26:14 +0000
Message-ID: <AM0PR0302MB33480674E3CAB4D8AB4DCBB5F9FC0@AM0PR0302MB3348.eurprd03.prod.outlook.com>
References: <20201122221445.1E11FF4071F@rfc-editor.org> <20201123.093729.325420538444196813.id@4668.se> <AM0PR0302MB3348EBB2C0F57E3B4FD8D7F7F9FC0@AM0PR0302MB3348.eurprd03.prod.outlook.com> <20201123.131452.2154616412508504559.id@4668.se>
In-Reply-To: <20201123.131452.2154616412508504559.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: 99fa3115-3604-442d-e660-08d88faaf894
x-ms-traffictypediagnostic: AM9PR03MB7092:
x-microsoft-antispam-prvs: <AM9PR03MB7092B7CE23965BE030FF8DF3F9FC0@AM9PR03MB7092.eurprd03.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:4714;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: o4YWXDSoVffNaTfLGLcxe5Ac1PKAR8lEJvifwJC3/Cza1czPkJZhkwCVONgfe638LfcylA0n5EjS1/zKXXmFC6h2TO9jT5LtnGJMF7rnGymaZx87Rtty9VUbZjJQ3VTs43UOFq4XkP+lqGjwB+VECJTRkP6cA1gfGv9RuVi+v+ABoyV5utc1zunYA5hlxSSon1+DKZRfn+4aaJIfqfvZRLLrjZ8/OHbEqabfjwzfx77wSgpBxynQSs4I68n9jGC5Une3MBC00UAwhEoQUPJmTTGeA0vJsN/0eE+5WxoQNNjZJpZhV2S4BAbXfwVpvV4Y8wA4PlbWjHk/itbZ9UPJjw2YKkopdDqHWpzhyD/nHwfj7VAYgEDP5zr7LLoTh3C5prtlxVPMa7QFKGtvd07vVA==
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)(346002)(376002)(366004)(39850400004)(396003)(136003)(8676002)(66574015)(55016002)(186003)(76116006)(966005)(316002)(26005)(7696005)(54906003)(2906002)(9686003)(71200400001)(5660300002)(66946007)(83380400001)(86362001)(478600001)(4326008)(53546011)(66476007)(6506007)(33656002)(8936002)(45080400002)(66446008)(52536014)(66556008)(64756008); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: RPL0EIaJQQopBCkGpCHPgdPXmwacW0lrnvfDO/vxlzxh+Gvrs8PGNCRmdMIGKvkbgAapUG7I1hIn5UoZ7okpN9JSOjnounAVxZw37NaqVejaLdYk2k13nET0t9QSl6KAEKPOl8nAFpzZXJbfhVd4d2rRiu5oR5uFwAhgPJ0nhaDAjmrqPq/I3zWVP4VIp1+T8LXcQhFp7vkt7ICdIIkB54lFpvHEklflxO4nWROVa/2maeQHP/8nNyHGHlhqLPyhfk4g66HIZDOoDTfZMk8RpCVdlMLd1nRRhB8p/Sie7bP/lBm5ZMtmrWmAIi9Aj00+eFDpB4CZyS4TQaTxiplRMhzyZ7Wif4LkSBKcbhwfvKgkpxepjlFkSAzudNxqQ2rh2zzS3Y++J8GF6dzDskD7jNiDPnRxdYli6hmM/eKfCwDxvq//otRl4cbm5xNxeGAgIygiLaaq2iDhTUbj1HCmd2ggNl+LecG5JIEQPZnjyP1ZaCr3+6gDvnDvUHKyJf/FtPfLe5Dac0mgJK5xxE8OwzgWGBzPm1vBWtus1sIE3DXkGJBU+vGocZ+O+bloe3f+R5vX6WVVaxQKDiu8AfpdNN+KZh+2FowNw5FZB3FUYgu3wWUuXZvg4flKNS5hH2ZOUlSD7CgwxBnnqJjrOpQSfSM1bqcjmfImsQ2hrcqvMK0Gg6i8bfu+os4Jz6EJs8IQo/97l7LOLFjO8kv2x21HneKJW6gaIc8ae9aS79NcX1ubV97dKnGfMOzjxvzXUwy1XZO2NeAlgzlHfpz8oXAYtn3XUJuji5RGnLJQN2nB0Sgb1YDBe5aJxHIwz6JRAhbWk7iJbxjJIz6vcUGc8hkZIxJ/YuJCCMLENQlBVwqpqkizx/bhrM213vQ1joWli9rUiXzEQRSq5PGAX0r8MVYzKw==
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: 99fa3115-3604-442d-e660-08d88faaf894
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2020 12:26:15.0106 (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: NaOefuZkLDKmBWwi++4JsmmCv5TK8IypeIooNXRnO1PIGkZgnbcmubLfFJkamGQ7
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7092
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/5xHU7mx8V5zmWmiUsWnukcwCst0>
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 12:26:49 -0000

Hi Martin,

Plain PATCH is defined as a merge operation i.e. it can create a resource.
It's not limited to editing of existing resources.

>From section 4.6.1:
" The plain patch mechanism merges the contents of the message-body
with the target resource."

" Plain patch can be used to create or update, but not delete, a child
resource within the target resource."

It's better to have consistent examples.
I suggest either to modify the plain PATCH example or the PUT example.


Best,

Muly


-----Original Message-----
From: Martin Björklund [mailto:mbj+ietf@4668.se] 
Sent: 23/11/2020 14:15
To: Muly Ilan <muly_i@rad.com>
Cc: rfc-editor@rfc-editor.org; kent+ietf@watsen.net; netconf@ietf.org
Subject: Re: [netconf] [Technical Errata Reported] RFC8040 (6342)

Hi,

Muly Ilan <muly_i@rad.com> wrote:
> Hi,
> 
> If list keys are not required in message body for plain PATCH then 
> they are also not required for the PUT method.

You are right that the keys are redundant also in PUT.  However, PUT means completely replace or create the resource, but plain PATCH modifies only the given fields.


/martin


> 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.co
> > m% 
> > 7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3bf9
> > d% 
> > 7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjA
> > wM 
> > DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=2
> > nm
> > 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%2
> > F%25 
> > 2Fexample.com%2Fns%2Fexample-jukebox&amp;data=04%7C01%7Cmuly_i%40rad
> > .c 
> > om%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3
> > bf 
> > 9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> > Lj 
> > AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdat
> > a= 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%2
> > F%25 
> > 2Fexample.com%2Fns%2Fexample-jukebox&amp;data=04%7C01%7Cmuly_i%40rad
> > .c 
> > om%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad1b3
> > bf 
> > 9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
> > Lj 
> > AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdat
> > a= 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%40
> > ra 
> > d.com%7Cf7ffd30dde054f875cc608d88f8b0eed%7Cf9047108cc2c4e4897a343fad
> > 1b
> > 3bf9d%7C1%7C0%7C637417174712193376%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM
> > C4 
> > wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;s
> > da
> > 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%40ra
> d.com%7Cf5c6b052c9fe4dd9c64308d88fa96449%7Cf9047108cc2c4e4897a343fad1b
> 3bf9d%7C1%7C0%7C637417304990448682%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4
> wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sda
> ta=SOPMijRWiUHA%2BpJnmxGJ4%2FLWqneTaFwfyIpdpuFl5yU%3D&amp;reserved=0