Re: [core] HTTP 418 response code ("I'm a teapot")

mohamed.boucadair@orange.com Thu, 11 June 2020 07:31 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 0170C3A0F53; Thu, 11 Jun 2020 00:31:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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.001, RCVD_IN_MSPIKE_WL=0.001, 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 LndFRr8tPeIz; Thu, 11 Jun 2020 00:31:13 -0700 (PDT)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.66.41]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BCEB3A0F48; Thu, 11 Jun 2020 00:31:13 -0700 (PDT)
Received: from opfedar00.francetelecom.fr (unknown [xx.xx.xx.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by opfedar24.francetelecom.fr (ESMTP service) with ESMTPS id 49jFsC4XjDz5vfl; Thu, 11 Jun 2020 09:31:11 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; s=ORANGE001; t=1591860671; bh=6Lj63Nl1d8vOBZxtMD2+BJehjjzKFD+UORUC0mEQ+yc=; h=From:To:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; b=cQggzurvli/8CMc2C2QhdBRjT9jPvTdW34Lzog4I+Jb5EFqDyTV6UcGAwwcNH67i3 iB7Sh2RIKXyC7dLhvGMWi/Ns5VDFne9cQQNFZrF/XtWw5iuYoPtTxdV4emo58rQvGs EKILuQJYkTUueM70mAeo5p9R2aweHspEjO3111a5s/BQMRuD/1pt5ITpg8X/r2ZRJv d6G3nDqnpP06JLKTSDlSJXHqC79ZcAJhn8Gsf9vC3VvhPlTksagaya7a8ozjslCzKb Hby6v5o0oCkuG67VYyRzKq3FB6MWdYgiPupJt5VjbjfYW7Q6cU60E9l63epf3G7WDh ya9Ua8PyeRwpg==
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by opfedar00.francetelecom.fr (ESMTP service) with ESMTPS id 49jFsC3NQ0zCqs1; Thu, 11 Jun 2020 09:31:11 +0200 (CEST)
From: mohamed.boucadair@orange.com
To: Carsten Bormann <cabo@tzi.org>
CC: "core@ietf.org" <core@ietf.org>, "draft-bosh-core-new-block@ietf.org" <draft-bosh-core-new-block@ietf.org>
Thread-Topic: [core] HTTP 418 response code ("I'm a teapot")
Thread-Index: AQHWP0j4SvZewIQHF0ywqzawf1nrW6jS/Uxg///j5YCAACJqIA==
Date: Thu, 11 Jun 2020 07:31:10 +0000
Message-ID: <26132_1591860671_5EE1DDBF_26132_135_3_787AE7BB302AE849A7480A190F8B9330314DC1A2@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
References: <6FE20960-D10C-4394-8334-B1C2D0FE06D2@tzi.org> <24632_1591859597_5EE1D98D_24632_38_1_787AE7BB302AE849A7480A190F8B9330314DC182@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <34FE583E-813A-4A0C-A470-BF780B7CB071@tzi.org>
In-Reply-To: <34FE583E-813A-4A0C-A470-BF780B7CB071@tzi.org>
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/ag-ncIuKUjoHrO6_BYW6gIBGE_8>
Subject: Re: [core] HTTP 418 response code ("I'm a teapot")
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: Thu, 11 Jun 2020 07:31:15 -0000

Re- 

Please see inline. 

Cheers,
Med

> -----Message d'origine-----
> De : Carsten Bormann [mailto:cabo@tzi.org]
> Envoyé : jeudi 11 juin 2020 09:19
> À : BOUCADAIR Mohamed TGI/OLN
> Cc : core@ietf.org; draft-bosh-core-new-block@ietf.org
> Objet : Re: [core] HTTP 418 response code ("I'm a teapot")
> 
> On 2020-06-11, at 09:13, <mohamed.boucadair@orange.com>
> <mohamed.boucadair@orange.com> wrote:
> >
> > Hi Carsten,
> >
> > Thank you for the note.
> >
> > FWIW, as there is no existing code that can be mapped to what we are
> doing in the block draft, we just picked the first available value in
> https://www.iana.org/assignments/http-status-codes/http-status-
> codes.xhtml#http-status-codes-1 and cross check with
> https://www.iana.org/assignments/core-parameters/core-
> parameters.xhtml#response-codes, hence 4.18.
> >
> > We can change to 4.19.
> 
> Yes.  The more interesting question is whether 4.xx is the right group.

[Med] We are in the "gray" area as the error can be of different nature as we report in the draft:

   Likely causes are the client has not sent all blocks, some blocks
   were dropped during transmission, or the client has sent them long
   enough ago that the server has already discarded them.

> We already have 2.31 for “continue”, i.e. a provisional result that asks to
> go on.
> I’m wondering whether that can be used (with the new payload), or whether a
> 2.xx would be right in general, as we are not trying to tell the client
> they have made a mistake and the processing of the request is over.

[Med] The use of 2.xx in 7959 is justified, but not in our case:

==
   This class of Response Code indicates that the clients request was
   successfully received, understood, and accepted.
== 

In our case, we need to signal a failure/error not a success. 

No?


_________________________________________________________________________________________________________________________

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.