Re: [core] [Dots] WG Last Call on draft-ietf-core-new-block

mohamed.boucadair@orange.com Tue, 12 January 2021 09:27 UTC

Return-Path: <mohamed.boucadair@orange.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 811D83A0E05; Tue, 12 Jan 2021 01:27:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.118
X-Spam-Level:
X-Spam-Status: No, score=-2.118 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=orange.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 SGN_SmDCAxza; Tue, 12 Jan 2021 01:27:09 -0800 (PST)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.66.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 525843A0E04; Tue, 12 Jan 2021 01:27:09 -0800 (PST)
Received: from opfedar05.francetelecom.fr (unknown [xx.xx.xx.7]) by opfedar27.francetelecom.fr (ESMTP service) with ESMTP id 4DFQFk68DYz2xNs; Tue, 12 Jan 2021 10:27:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; s=ORANGE001; t=1610443626; bh=CgOGAj2FBRazfmI011YvZbuA/JVbR0Ape1JyKYxcWss=; h=From:To:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; b=WUTPnjZoIkbHMPMEm29BPqgiZetOp4443OPY8dQH76yV2v8mj0WLt7UBhXHB5ss33 xUCXZAqPKvaxQ9ltOExLwF4ApSLdSHnVEI/e/IOQ6vSrW7KXJYz7sodwcd9Ax/XMSc D2Kk7P3LJeZ48QsM61x6Cu38LGYJ3iLB9lNTev1mdtM5qcYilQQaM9gcie6Z9yj8PP PJ3HGUyUDWnrI94w5jXzGsriPU7DNPvGN6n8T4GbRbjKYS7iXX+h3piF2EYkgWPEaC TU2GCU3defyXOrKU5QdkvgiKEQASPMN0cRhW8R94gOF7qHPiFiJcrYp1uGVCms16Ie uWSmi9TN0N6IQ==
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.54]) by opfedar05.francetelecom.fr (ESMTP service) with ESMTP id 4DFQFk4SQJz2xCF; Tue, 12 Jan 2021 10:27:06 +0100 (CET)
From: mohamed.boucadair@orange.com
To: Marco Tiloca <marco.tiloca@ri.se>, "supjps-ietf@jpshallow.com" <supjps-ietf@jpshallow.com>, "jon@jpshallow.com" <jon@jpshallow.com>, "christian@amsuess.com" <christian@amsuess.com>, "draft-ietf-core-new-block@ietf.org" <draft-ietf-core-new-block@ietf.org>
CC: "dots@ietf.org" <dots@ietf.org>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [Dots] [core] WG Last Call on draft-ietf-core-new-block
Thread-Index: AQHW6MKuBUGUqFPLqk+vRyAaxhyBTKojuDjA
Date: Tue, 12 Jan 2021 09:27:05 +0000
Message-ID: <14775_1610443626_5FFD6B6A_14775_483_1_787AE7BB302AE849A7480A190F8B9330315B7C8D@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
References: <022401d6e440$06763ba0$1362b2e0$@jpshallow.com> <fa7956ae-31a3-7724-3af4-4e755a719045@ri.se> <041101d6e5c2$e17fbef0$a47f3cd0$@jpshallow.com> <a549b34f-3f72-a6df-b2c3-ae9d3759b701@ri.se> <047b01d6e5e2$2115ba50$63412ef0$@jpshallow.com> <f8774b5c-9736-1cff-266f-f9b66653a86c@ri.se> <065301d6e805$286163c0$79242b40$@jpshallow.com> <df2ee5a1-0d36-7f28-534d-42f2eb063040@ri.se> <06e801d6e838$4be6ae30$e3b40a90$@jpshallow.com> <82c69828-fcc7-b039-925b-00d5a3fdce8a@ri.se> <25360_1610436103_5FFD4E07_25360_250_11_787AE7BB302AE849A7480A190F8B9330315B7B02@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <efbe233f-6ef8-810b-9650-a5c0cc7ee59e@ri.se>
In-Reply-To: <efbe233f-6ef8-810b-9650-a5c0cc7ee59e@ri.se>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.114.13.245]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/0t1izwRIbBUA89QfxWJhH_g6RBE>
Subject: Re: [core] [Dots] WG Last Call on draft-ietf-core-new-block
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 12 Jan 2021 09:27:12 -0000

Re-,

The concern is what to put in that paylaod if the resource does not exist:

   If the POST succeeds and results in the target resource being
   deleted, the response SHOULD have a 2.02 (Deleted) Response Code.

Cheers,
Med

> -----Message d'origine-----
> De : Marco Tiloca [mailto:marco.tiloca@ri.se]
> Envoyé : mardi 12 janvier 2021 10:10
> À : BOUCADAIR Mohamed TGI/OLN <mohamed.boucadair@orange.com>;
> supjps-ietf@jpshallow.com; jon@jpshallow.com; christian@amsuess.com;
> draft-ietf-core-new-block@ietf.org
> Cc : dots@ietf.org; core@ietf.org
> Objet : Re: [Dots] [core] WG Last Call on draft-ietf-core-new-block
> 
> Hi Med,
> 
> Could you clarify why that part is broken?
> 
> From RFC 7252, Section 5.9.1.2  "2.02 Deleted" says:
> 
>    "This Response Code is like HTTP 204 "No Content" but only used
> in response to requests that cause the resource to cease being
> available, such as DELETE and, in certain circumstances, POST. The
> payload returned with the response, if any, is a representation of
> the action result."
> 
> So, a 2.02 response can follow a POST request, and it can have a
> payload, which might be split using Block2.
> 
> Best,
> /Marco
> 
> On 2021-01-12 08:21, mohamed.boucadair@orange.com wrote:
> > Hi Marco, all,
> >
> > With regards to 2.02, RFC7959 says the following:
> >
> >    Hence, for the methods defined in [RFC7252], Block1 is useful
> with
> >    the payload-bearing POST and PUT requests and their responses.
> >    Block2 is useful with GET, POST, and PUT requests and their
> payload-
> >    ^^^^^^
> ^^^^^^^^
> >    bearing responses (2.01, 2.02, 2.04, and 2.05 -- see Section
> 5.5 of
> >    ^^^^^^^^                 ^^^^
> >    [RFC7252]).
> >
> > Which we think is broken.
> >
> > We don't echo that part in the new-block.
> >
> > Should we fill an errata against this?
> >
> > Cheers,
> > Med
> >
> >> -----Message d'origine-----
> >> De : Dots [mailto:dots-bounces@ietf.org] De la part de Marco
> Tiloca
> >> Envoyé : lundi 11 janvier 2021 20:23 À : supjps-
> ietf@jpshallow.com;
> >> jon@jpshallow.com; christian@amsuess.com;
> >> draft-ietf-core-new-block@ietf.org
> >> Cc : dots@ietf.org; core@ietf.org
> >> Objet : Re: [Dots] [core] WG Last Call on draft-ietf-core-new-
> block
> >>
> >> Hi Jon,
> >>
> >> Thanks for the fast reaction. Please, see inline.
> >>
> >> Best,
> >> /Marco
> >>
> >> On 2021-01-11 17:39, supjps-ietf@jpshallow.com wrote:
> >>> Hi Marco,
> >>>
> >>>> response code beside it).
> >>> [Jon] Thanks - added.  Also added in 2.02 and 2.05 as being
> >> expected response codes in 3.3.
> >>
> >> ==>MT
> >> Looks good.
> >> <==
> >>
> >
> ____________________________________________________________________
> __
> > ___________________________________________________
> >
> > Ce message et ses pieces jointes peuvent contenir des informations
> > confidentielles ou privilegiees et ne doivent donc pas etre
> diffuses,
> > exploites ou copies sans autorisation. Si vous avez recu ce
> message
> > par erreur, veuillez le signaler a l'expediteur et le detruire
> ainsi que les pieces jointes. Les messages electroniques etant
> susceptibles d'alteration, Orange decline toute responsabilite si ce
> message a ete altere, deforme ou falsifie. Merci.
> >
> > This message and its attachments may contain confidential or
> > privileged information that may be protected by law; they should
> not be distributed, used or copied without authorisation.
> > If you have received this email in error, please notify the sender
> and delete this message and its attachments.
> > As emails may be altered, Orange is not liable for messages that
> have been modified, changed or falsified.
> > Thank you.
> >
> 
> --
> Marco Tiloca
> Ph.D., Senior Researcher
> 
> RISE Research Institutes of Sweden
> Division ICT
> Isafjordsgatan 22 / Kistagången 16
> SE-164 40 Kista (Sweden)
> 
> Phone: +46 (0)70 60 46 501
> https://www.ri.se
> 


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.