Re: [core] Fwd: New Version Notification for draft-vanderstok-core-comi-09.txt
Michel Veillette <Michel.Veillette@trilliantinc.com> Wed, 09 March 2016 14:50 UTC
Return-Path: <Michel.Veillette@trilliantinc.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6CEAA12D6EF for <core@ietfa.amsl.com>; Wed, 9 Mar 2016 06:50:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.903
X-Spam-Level:
X-Spam-Status: No, score=-1.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=trilliant.onmicrosoft.com
Received: from mail.ietf.org ([127.0.0.1]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 47cdYgUYWydD for <core@ietfa.amsl.com>; Wed, 9 Mar 2016 06:50:30 -0800 (PST)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0112.outbound.protection.outlook.com [65.55.169.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 868ED12DFEA for <core@ietf.org>; Wed, 9 Mar 2016 06:44:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Trilliant.onmicrosoft.com; s=selector1-trilliantinc-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bssyxLKfKKT09DNmYHmPDfGxRfTqnhTCNSOOL42hwP4=; b=KX8q5RkJmlI9YtxpPHegExeGYScHHoVlnrY3atetTBeZeoUUW0AqldPuwtW80Ic1OXmIfLf+rVbHz8seU1d+LgS4o1Ha3k614XXc2DJnLoIEOTS4C2KaW9/RoaTImYCE27G/3LXsZo2Da3fZ6sxZkJc6e8quQq9Po6XuRZSYogU=
Received: from BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) by BLUPR06MB1763.namprd06.prod.outlook.com (10.162.224.149) with Microsoft SMTP Server (TLS) id 15.1.427.16; Wed, 9 Mar 2016 14:43:58 +0000
Received: from BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) by BLUPR06MB1763.namprd06.prod.outlook.com ([10.162.224.149]) with mapi id 15.01.0427.019; Wed, 9 Mar 2016 14:43:58 +0000
From: Michel Veillette <Michel.Veillette@trilliantinc.com>
To: "consultancy@vanderstok.org" <consultancy@vanderstok.org>
Thread-Topic: [core] Fwd: New Version Notification for draft-vanderstok-core-comi-09.txt
Thread-Index: AdF4f34PcCdHLPqYQ0WUDYiqZ7ChJgAk1gcAABdsK9AAGmSxgAAN2HaQ
Date: Wed, 09 Mar 2016 14:43:58 +0000
Message-ID: <BLUPR06MB1763FC692E71D3493A020B73FEB30@BLUPR06MB1763.namprd06.prod.outlook.com>
References: <BLUPR06MB1763182CDD5BD6EA3F5CE427FEB10@BLUPR06MB1763.namprd06.prod.outlook.com> <6b64abc32bfd7ca521a8ee3eb6377c43@xs4all.nl> <BLUPR06MB1763A17C1C130BB12A5CF73AFEB20@BLUPR06MB1763.namprd06.prod.outlook.com> <61453504599048979219019bea41f248@xs4all.nl>
In-Reply-To: <61453504599048979219019bea41f248@xs4all.nl>
Accept-Language: fr-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: vanderstok.org; dkim=none (message not signed) header.d=none;vanderstok.org; dmarc=none action=none header.from=trilliantinc.com;
x-originating-ip: [207.96.192.122]
x-ms-office365-filtering-correlation-id: 5eb8f5ba-cbb2-41fd-8a8d-08d348293f78
x-microsoft-exchange-diagnostics: 1; BLUPR06MB1763; 5:QRmCkHWEsq+iZSI3GJWH/lIAxwpQB42RgqAEx3WZkSXHUKYE1i+vntx7s3xumOpO31uaXsekjTD4xwIOmpxsIKEYYkhWQTJhoXKvoYJSNlbSXSoTbDUY2327raBg7eBuaDY4b9MAj9lyJ5YvLnHelg==; 24:5qn4W73iOKFjXCHbHes9aGpeKvRWCoWxCwsYt2HzR1f+USGDqvp8df5L0phtK667saAUHbIhdd/piOvrSX3k6txqEkKQuxWJJWw/Nz4ayV4=
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR06MB1763;
x-microsoft-antispam-prvs: <BLUPR06MB176370800A2E29A90A7D0F0CFEB30@BLUPR06MB1763.namprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BLUPR06MB1763; BCL:0; PCL:0; RULEID:; SRVR:BLUPR06MB1763;
x-forefront-prvs: 0876988AF0
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(13464003)(377424004)(2473001)(377454003)(76576001)(92566002)(3846002)(102836003)(6116002)(5002640100001)(1730700002)(586003)(11100500001)(5640700001)(110136002)(5008740100001)(74316001)(2501003)(3660700001)(15650500001)(5003600100002)(81166005)(86362001)(10400500002)(2351001)(33656002)(2950100001)(50986999)(77096005)(2900100001)(230783001)(19580405001)(93886004)(76176999)(189998001)(15975445007)(54356999)(19580395003)(87936001)(122556002)(1096002)(3280700002)(66066001)(5004730100002)(4326007)(2906002)(99286002)(1220700001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR06MB1763; H:BLUPR06MB1763.namprd06.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: trilliantinc.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2016 14:43:58.2126 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4f6fbd13-0dfb-4150-85c3-d43260c04309
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR06MB1763
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/oJuFadAv9FEx54Plk_Lp8xZm5RQ>
Cc: Core <core@ietf.org>
Subject: Re: [core] Fwd: New Version Notification for draft-vanderstok-core-comi-09.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Mar 2016 14:50:33 -0000
Hi Peter You seem to agree that the replace operation uses in the two examples is idempotent. "showing that the replace op is idem-potent" " Do you think a non-idempotent example would help?" In this case, why these examples use PATCH instead of iPATCH? I'm still confuse about this notion of PATCH vs. iPATCH. Regards, Michel -----Original Message----- From: peter van der Stok [mailto:stokcons@xs4all.nl] Sent: March-09-16 3:03 AM To: Michel Veillette <Michel.Veillette@trilliantinc.com> Cc: consultancy@vanderstok.org; Core <core@ietf.org> Subject: RE: [core] Fwd: New Version Notification for draft-vanderstok-core-comi-09.txt Hi Michel, see below Michel Veillette schreef op 2016-03-08 20:38: > Hi Peter. > > About "don't think so, why?" > > An update operation is not always idempotent. > For both examples, don't we have the following behaviour? > f(f("x-coord": 256) = f("x-coord": 256) = "x-coord": 45 and if I understand your notation: f(f("x-coord": 45) = f("x-coord": 45) = "x-coord": 45 showing that the replace op is idem-potent. Independent of the number of times that you execute it, the results is the same. > > First example: > PATCH CoAP://www.example.com/object Content-Type: > application/json-patch+json > [ { "op":"replace","path":"x-coord","value":45} ] > > Second example: > PATCH CoAP://www.example.com/object Content-Type: > application/merge-patch+json > { "x-coord" : 45 } > > So, should we replace the PATCH by an iPATCH? > I just trying to understand how this work. PATCH invocation do not need to be idem-potent but are allowed to be idem-potent. So both iPATCH and PATCH would be correct here. Do you have suggestions for clarifications? Do you think a non-idempotent example would help? > > Michel > > -----Original Message----- > From: peter van der Stok [mailto:stokcons@xs4all.nl] > Sent: March-08-16 3:17 AM > To: Michel Veillette <Michel.Veillette@trilliantinc.com> > Cc: consultancy@vanderstok.org; Core <core@ietf.org> > Subject: RE: [core] Fwd: New Version Notification for > draft-vanderstok-core-comi-09.txt > > Hi Michel > > see below. > > Michel Veillette schreef op 2016-03-07 15:42: >> Hi Peter >> >> We are correctly in final review process of the mapping draft prior >> publishing. >> The current version is available at: >> https://core-wg.github.io/yang-cbor/draft-veillette-core-yang-cbor-ma >> p >> ping-latest.html > >> pvds> will try </pvds> >> >> If possible, send me your comments before Wednesday to give us some >> time to apply them. >> >> About "draft-vanderstok-core-patch-02", in the examples: >> - should "Content-Type" be replaced by "Content-Format" since it's a >> CoAP request? > > <pvds> > good remark, In the coap RFC content-Type is used a few times, and > content-format mostly. > I will change > </pvds> >> - should PATCH be replaced by "iPATCH" > <pvds> > don't think so, why? > </pvds> >> >> More globally, do we really need two methods "PATCH" and "iPATCH"? > <pvds> > people like idem-potent as explained in earlier e_mail by Carsten > other people prefer more freedom by removing idem-potency restriction. > Both camps have valid arguments. > </pvds> > >> If both methods are supported, should the client select to proper >> method per request or just on the potential for a method to sometime >> create non-idempotent requests? >> For example, should the client use iPATCH for a "replace" and PATCH >> for a "insert-after"? >> >> iPATCH CoAP://www.example.com/object >> Content-Type: application/json-patch+json >> [ >> { "op":"replace","path":"/x-coord","value":45} >> ] >> >> PATCH CoAP://www.example.com/object >> Content-Type: application/json-patch+json >> [ >> { "op":"insert-after", "insertion-point" : "/y-coord", >> "path":"/z-coord","value":45} >> ] > <pvds> > My opinion: > Both iPATCH and Patch can be invoked. > When the content suggests a non-idem-potent update (like add an item > to an array) > - the Patch should execute the update > - and iPatch should return an error and do nothing (atomicity) </pvds> >> >> Regards, >> Michel Veillette >> >> -----Original Message----- >> From: core [mailto:core-bounces@ietf.org] On Behalf Of peter van der >> Stok >> Sent: March-07-16 3:37 AM >> To: Core <core@ietf.org> >> Subject: [core] Fwd: New Version Notification for >> draft-vanderstok-core-comi-09.txt >> >> Dear all, >> >> a New version of the comi draft has been submitted. >> >> - All yang hash text has been removed and the draft refers to >> bierman-core-yang-hash draft. draft refers to managed numbering. >> - All YANG to CBOR mapping has been removed, the draft waits for the >> publication of the yang-cbor draft >> - the draft lists all differences with restconf >> - rpc has been added. >> - and several other editorials. >> >> Peter >> >> -------- Oorspronkelijke bericht -------- >> Onderwerp: New Version Notification for >> draft-vanderstok-core-comi-09.txt >> Datum: 2016-03-07 09:30 >> Afzender: internet-drafts@ietf.org >> Ontvanger: "Peter van der Stok" <consultancy@vanderstok.org>, "Peter >> Van der Stok" <consultancy@vanderstok.org>, "Andy Bierman" >> <andy@yumaworks.com> >> >> A new version of I-D, draft-vanderstok-core-comi-09.txt has been >> successfully submitted by Peter van der Stok and posted to the IETF >> repository. >> >> Name: draft-vanderstok-core-comi >> Revision: 09 >> Title: CoAP Management Interface >> Document date: 2016-03-07 >> Group: Individual Submission >> Pages: 48 >> URL: >> https://www.ietf.org/internet-drafts/draft-vanderstok-core-comi-09.tx >> t >> Status: >> https://datatracker.ietf.org/doc/draft-vanderstok-core-comi/ >> Htmlized: >> https://tools.ietf.org/html/draft-vanderstok-core-comi-09 >> Diff: >> https://www.ietf.org/rfcdiff?url2=draft-vanderstok-core-comi-09 >> >> Abstract: >> This document describes a network management interface for >> constrained devices, called CoMI. CoMI is an adaptation of the >> RESTCONF protocol for use in constrained devices and networks. >> The >> Constrained Application Protocol (CoAP) is used to access >> management >> data resources specified in YANG, or SMIv2 converted to YANG. >> CoMI >> use the YANG to CBOR mapping and encodes YANG names to reduce >> payload >> size. >> >> Note >> >> Discussion and suggestions for improvement are requested, and >> should >> be sent to core@ietf.org. >> >> >> >> >> Please note that it may take a couple of minutes from the time of >> submission until the htmlized version and diff are available at >> tools.ietf.org. >> >> The IETF Secretariat >> >> _______________________________________________ >> core mailing list >> core@ietf.org >> https://www.ietf.org/mailman/listinfo/core
- [core] Fwd: New Version Notification for draft-va… peter van der Stok
- Re: [core] Fwd: New Version Notification for draf… Michel Veillette
- Re: [core] Fwd: New Version Notification for draf… peter van der Stok
- Re: [core] Fwd: New Version Notification for draf… Michel Veillette
- Re: [core] Fwd: New Version Notification for draf… peter van der Stok
- Re: [core] Fwd: New Version Notification for draf… Michel Veillette
- Re: [core] Fwd: New Version Notification for draf… Carsten Bormann
- Re: [core] Fwd: New Version Notification for draf… Michel Veillette