Re: [core] New Version Notification for draft-amsuess-core-pd-body-error-position-00.txt

Thomas Fossati <Thomas.Fossati@arm.com> Sun, 05 February 2023 10:10 UTC

Return-Path: <Thomas.Fossati@arm.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 0541AC14EB18 for <core@ietfa.amsl.com>; Sun, 5 Feb 2023 02:10:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.895
X-Spam-Level:
X-Spam-Status: No, score=-6.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b="wsPPJT+m"; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b="wsPPJT+m"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PtyNf4_mk7ZL for <core@ietfa.amsl.com>; Sun, 5 Feb 2023 02:10:42 -0800 (PST)
Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2060b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe13::60b]) (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 1112DC14F731 for <core@ietf.org>; Sun, 5 Feb 2023 02:10:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gC76T18C5rI/EoCA69ErG9p6nXfEF5VyQ8Aw2IWSZR4=; b=wsPPJT+mt3VCgOWGEjPkAY+N++T253RfTqn9gJdcwZFIoFZPxdiyX/wVsSCI4KV5+7VbWp7r5aQJAjR3BPTGU/GIs9OF7oaGCoSHSK33Ure20tifkZ2cWUMVXQvZH5jl3Cw9sF0iD1E3IV9mVBxGKqOFkXm+PCBv5L2blBV26zo=
Received: from AS9PR05CA0253.eurprd05.prod.outlook.com (2603:10a6:20b:493::25) by DU0PR08MB9536.eurprd08.prod.outlook.com (2603:10a6:10:44c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27; Sun, 5 Feb 2023 10:10:32 +0000
Received: from AM7EUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:493:cafe::4) by AS9PR05CA0253.outlook.office365.com (2603:10a6:20b:493::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.32 via Frontend Transport; Sun, 5 Feb 2023 10:10:31 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com;
Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT051.mail.protection.outlook.com (100.127.140.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.31 via Frontend Transport; Sun, 5 Feb 2023 10:10:31 +0000
Received: ("Tessian outbound 0d7b2ab0f13d:v132"); Sun, 05 Feb 2023 10:10:31 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 90735212629a6f31
X-CR-MTA-TID: 64aa7808
Received: from 939174b32a17.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4B49C2FD-37A2-4596-BA96-19F0B99B7C93.1; Sun, 05 Feb 2023 10:10:24 +0000
Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 939174b32a17.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 05 Feb 2023 10:10:24 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKK40VmXddF9OaiprwKaDxPmhvvYXBXSB1vMlIzPcYawHV/fIKK0cjKigfHGIUv84LRwIVTsi1ZXD2d9WIH310Pel6m13tiwmvl8JLabBndkaAOsw1SAvEy0nfZ7fn3TqlTb0s467SSePwH9wt4GDRT8rWRbj+MPWP55INIMWJ5T8EiPf8EYg5srY878ZYeEBV/DIVOaRohyAlcT6WYYeNlCv2lqhwaZHrt1CMjn88W6co/zQVkSnZx2vDEEd5kXT/MFeosP6Whgla7hPFpX2ek1vMpSRIotV6w/+6RxWun+KzFNbSiTB0ju2qHrtNR0CTmQ4tWrbqAunOb0hvwXtw==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gC76T18C5rI/EoCA69ErG9p6nXfEF5VyQ8Aw2IWSZR4=; b=m2BmL2f6dL5FvEi/hhE0HKeJ7uj58Ye+3nQaVTGosYoKib4/W0E/lEm5VwpCpbjV/gqgLSzlLk/Q/hmq30TnqS2t0mtaUqFEix+at4qHFxGLWhhdCmKJ25JPgegyerbIvqw7IV/PJ79kwTXqanjh0scvbPyqeW7XyTSukDGO4na2m3ZbMLTGqRf0Fb+pS8fn3+vVEQG73Jyt4NeEwQopxhNL4dpwo7hIrFMFM0kfsxTx1us1S+2PoPL+OEn0sjzlB4zT0LS1IO8nSZoIebYrLqUs+FNzEDQI07Ex3fCN7mgDwzB6eVMUnG9KfTfe8sShEQtjpl4yaxGswYgr7ejcsQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gC76T18C5rI/EoCA69ErG9p6nXfEF5VyQ8Aw2IWSZR4=; b=wsPPJT+mt3VCgOWGEjPkAY+N++T253RfTqn9gJdcwZFIoFZPxdiyX/wVsSCI4KV5+7VbWp7r5aQJAjR3BPTGU/GIs9OF7oaGCoSHSK33Ure20tifkZ2cWUMVXQvZH5jl3Cw9sF0iD1E3IV9mVBxGKqOFkXm+PCBv5L2blBV26zo=
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com (2603:10a6:10:251::8) by DU0PR08MB7947.eurprd08.prod.outlook.com (2603:10a6:10:3cb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.32; Sun, 5 Feb 2023 10:10:22 +0000
Received: from DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::8295:3930:eca:1601]) by DB9PR08MB6524.eurprd08.prod.outlook.com ([fe80::8295:3930:eca:1601%5]) with mapi id 15.20.6064.034; Sun, 5 Feb 2023 10:10:20 +0000
From: Thomas Fossati <Thomas.Fossati@arm.com>
To: Christian Amsüss <christian@amsuess.com>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] New Version Notification for draft-amsuess-core-pd-body-error-position-00.txt
Thread-Index: AQHZOOnM4d5AMX8P3k6A+T6swmhfma7AG2tp
Date: Sun, 05 Feb 2023 10:10:07 +0000
Message-ID: <DB9PR08MB65244577297F4C3CC1673E469CD59@DB9PR08MB6524.eurprd08.prod.outlook.com>
References: <Y97e6dWnME7brk7r@hephaistos.amsuess.com>
In-Reply-To: <Y97e6dWnME7brk7r@hephaistos.amsuess.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
x-ms-traffictypediagnostic: DB9PR08MB6524:EE_|DU0PR08MB7947:EE_|AM7EUR03FT051:EE_|DU0PR08MB9536:EE_
X-MS-Office365-Filtering-Correlation-Id: 3641a2a6-cc6a-4587-78f9-08db076136ca
x-checkrecipientrouted: true
nodisclaimer: true
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: lkLRgIYttPOXhEgDr5IwiE/aQHZUkPBIIfvBAIcTwj0ZCafIofmwD1Hgzt18e6ts5gb1cfA0Qi9d405is7SSAOWsbUTN6GUbFLhLSbwU7+d2lTZvIZHKo2mIJCoeWWxX2BFpECrpTnRp5xyLXPWmH0i6yzhUkQdB0yl9dHwYmN4SPteEfFUdAnWiBAn9GHx7fOy1AdCs69kbo+iHLcuAnkezA1gSHsG3SYobSwgZXUNwNZfnFgpIwfEHTRkvMZqpytCcZjV9BGTFV1svmuNMtSg4SnVHI8Q8A5ZBRa/PWbJ9K41a3E44uLVJg0VzmQePtu1WKaKFYKikdpMTDR0OnZFhZsaRHaGbbL3b/1vNeviMALJ0CQm3yab6hf0zsITkutmPlUPHlQyhYe7a9OEcKUGBCBdZqV/uXEQgO7FjyK7WpaTrhU/Z62mOwLavGq3veVIcEXtgdytZR1/1LxrDRMrZWlqYqDzMrAJNAeyaWlm/o4qew4t41yECE4JfbCSbFT7rt020SI1eZRngmBtIBOtkF/lYpwmgGjydcFvkPeNLU2N2ul1nhl6BlHhIpxhEHVm91B3YxGPKrgX+XiZgz6KtoQHhj+UZk/s0rkPs99GqotqXR3zW83HTRz9ldOpmnjyXA6CD5etVCRbAdghfm/hatsiHX580s8p1fsjYEfBEoQIMtvBhQGoZ2K6oT1sYaKoSD35OU5TOwoOdnDA3gg7wTJ9pgba24/GLiSCnBvWwX39XGHHSUkxMRIf0IHlB1qMdGX5eqVyKtwYbeU28pw==
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR08MB6524.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(396003)(39860400002)(376002)(136003)(366004)(451199018)(316002)(110136005)(66574015)(2906002)(38100700002)(122000001)(21615005)(5660300002)(15650500001)(38070700005)(86362001)(33656002)(66556008)(166002)(8676002)(76116006)(66476007)(66446008)(64756008)(83380400001)(91956017)(41300700001)(9326002)(8936002)(55016003)(52536014)(966005)(9686003)(478600001)(71200400001)(66946007)(7696005)(26005)(186003)(6666004)(6506007)(53546011); DIR:OUT; SFP:1101;
Content-Type: multipart/alternative; boundary="_000_DB9PR08MB65244577297F4C3CC1673E469CD59DB9PR08MB6524eurp_"
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7947
Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT051.eop-EUR03.prod.protection.outlook.com
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id-Prvs: b9f888b9-1ef2-4f5c-fe54-08db0761301f
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: kyNQcFZPy8sDKiFdY5O0Yy52AO61H7BXMkXCr/vpXNgSn2pcmT1nJwwakYH+jHuI4NrnqNcUWoPnaColly/G5dcZ9c0h0+tNOzUPWH860YOz2TMIdTK58dOWEZifNJ5/Kk5njAzuWSOHj/cCTlP9dF+W9CvfK4VICAw2NuwSTbgarfKUNZKHWhwNboAQenBgp0dbBPpAB+K2QIh/I92kRA8B26ohHQghLpQrIJg3Vg99YhTd1z+W4uO3A5118T3hqQMYg5UcJLTvhC07WpL9xlfKIfxdIx/LGPYAW8NQ1bD1ai2JbV8KnMRpp+bcJXD7RO1G6eqhuddBZjv3Pu9OSUipsbFjlJhHdtoRvS+P0mwPdeMyz5m0EDQ6lKaJCTdyebRzlkDVgMImiFAoRn/OFpnRhO0CaNvIrYsq0VfaZFL/26sZx9+eqsebjoMRD/rL26J3EYYVub0TiX58ydwJ+49XBLDEc1TZtLeek0qAURJ7R9Q6QeBhSzl+qMyYnMoHBwnKbiPRBZybnX45n1uvvNwA5t6P+G/8KIJFvM9m1/7oAxp9x0XahbfbmwulDkzWInsuQH5jA2GjTTCN356YA+SC2BUv0ODvyIvAw1WkT6zNoitNO6dScCtBcFX9PiaJ7J9I6QLo6zni6Y01USlpSeCzK/8ZYuDP4z7Fah7DcLkBXLkI3flzwHMNjkmZ0ViGVrGzPpRvP7Bika34G3AjN+WzYbL+ZTyPE0pcHPcKiMk=
X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(39860400002)(396003)(136003)(346002)(451199018)(46966006)(36840700001)(82310400005)(186003)(9686003)(6506007)(53546011)(82740400003)(36860700001)(83380400001)(336012)(15650500001)(2906002)(21615005)(26005)(7696005)(166002)(478600001)(81166007)(966005)(110136005)(6666004)(70206006)(66574015)(70586007)(86362001)(47076005)(41300700001)(8676002)(55016003)(40480700001)(316002)(33656002)(5660300002)(8936002)(52536014)(356005)(9326002); DIR:OUT; SFP:1101;
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2023 10:10:31.4737 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 3641a2a6-cc6a-4587-78f9-08db076136ca
X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com]
X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT051.eop-EUR03.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9536
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/P_iDThmes2kkvqi4TFOsUF27hgA>
Subject: Re: [core] New Version Notification for draft-amsuess-core-pd-body-error-position-00.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
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: Sun, 05 Feb 2023 10:10:48 -0000

Hi Chris,

Thanks for taking the time to put together the document, it’s really helpful.

This sounds like a generally useful addition to PD, therefore the standard block is, IMO, appropriate.

My only doubt is why not requesting -9 (one byte) rather than -25 (two bytes)?

Cheers, t

On 04/02/2023, 22:41, "core" <core-bounces@ietf.org> wrote:

Hi Standard Problem Detail Keys experts, hello group,

implementing RFC9290 for the Rust coap-handler-implementations, I found
that many error paths are due to parsing errors (which, the way things
are set up, are not distinguished between CBOR format errors or just
unexpected elements). The problem detail might lend itself to
generalization, which I've written up with the intention to apply for a
standard problem detail number.

While no WG or even IETF action is required for this, I'd appreciate a
few eyes and/or comments before sending this to IANA and eventually the
experts, Thomas and Carsten.

Below the "new document" template, I've copied down the two most
relevant sections for your convenience.

Name:           draft-amsuess-core-pd-body-error-position
Revision:       00
Title:          Concise Problem Details: Body Error Position
Document date:  2023-02-04
Group:          Individual Submission
Pages:          5
Status:         https://datatracker.ietf.org/doc/draft-amsuess-core-pd-body-error-position/
Html:           https://www.ietf.org/archive/id/draft-amsuess-core-pd-body-error-position-00.html
Htmlized:       https://datatracker.ietf.org/doc/html/draft-amsuess-core-pd-body-error-position

Abstract:
   This defines a single standard problem detail for use with the
   Concise Problem Details format: Request Body Error Position.  Using
   this detail, the server can point at the position inside the client's
   request body that induced the error.


1.2.  Document lifecycle

   Registering a standard problem detail merely requires a
   specification, not an RFC (let alone of a particular track).

   It is the author's opinion that an Interned Draft can provide
   sufficient specification, and is more suitable than an informal note
   published at some arbitrary website due to its archival through the
   draft submission process.

   It is not expected that this draft will proceed all the way to an
   RFC; instead, once sufficiently mature, it will be used as a
   reference in a request to IANA, and updated with the assigned number.

   This document will eventually expire as an Internet Draft, but
   nonetheless be usable as the permanent reference for the assigned
   problem detail.

2.  Request Body Error Position

   The Request Body Error Position problem detail indicates that the
   error described by the Concise Problem Details response resulted from
   processing the request body.  The numeric value indicates a byte
   position inside that body that corresponds to the error.  The precise
   error position for invalid data may vary by implementation -- for
   example, if a numeric value inside a CBOR ([STD94]) item exceeds the
   expected range, it may indicate the number's initial byte (typically
   if the implementation doesn't even implement the indicated argument
   size) or the argument (if it implements it).

   When the request's content format indicated a non-identity content
   coding, the offset points into the uncompressed body.  Consequently,
   this error detail is not suitable for pointing out errors that occur
   during uncompressing.

   The main envisioned use of this option is for the client to highlight
   or back-annotate (eg. to counteract minification, or to display it on
   some diagnostic notation) the erroneous item in the request body for
   a human author.

BR
c

--
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.