Re: [core] [Cbor] WG Last Call on draft-ietf-core-problem-details

Marco Tiloca <marco.tiloca@ri.se> Fri, 20 May 2022 18:04 UTC

Return-Path: <marco.tiloca@ri.se>
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 29532C1D34E7; Fri, 20 May 2022 11:04:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.955
X-Spam-Level:
X-Spam-Status: No, score=-3.955 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, NICE_REPLY_A=-1.857, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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=ri.se
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 jL5g6cNkXRyu; Fri, 20 May 2022 11:04:25 -0700 (PDT)
Received: from emea01-obe.outbound.protection.outlook.com (mail-db3fsprdbn0011.outbound.protection.outlook.com [52.101.81.11]) (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 F3768C14F6F8; Fri, 20 May 2022 11:04:23 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ftxIYYpP8/H2kUsDmLi5oGn3B1Kg6hD2/0jtNYlPCZ6Crgjg7/Y964NmRbsKbUj4ou47Go3MZMuaPIUPVpvHmvPcfB/ve3qx364B0A8wwdP6Inwz2idU8mexP1PVvze6UZzrzhmDZ/Z77gKhEFlzG+OSnbJFw3+650whsCdSovin6xwhQQzuniov1oqpIyx+Ep41joTNAG5PfSdi2dhJn9PeCBRgD9De3lKKHQ9JbC09BZx3pqjjDeKbRwg4sgC7pPmNGZ2W/MF7PBkxr8HMlC3cd48k6Ssjj37fPCtpTORIstxsTw0h7K/Oxkx5wOQPSj3dVBkjwkUTk4UN9/mQBA==
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=8izDLNgi27T/q5XLGBRMLvtBRFU4BnYZ0fYqeYPMvVw=; b=Xx1Mgew2rnoZ/bbk6DPKvtN/gwkYoQv0UnheR1Qz3omKeipe3RfmIXgHoutalvlJaZ1enbbVF0KxPfEbzKWEUBbUtAWfkcjP50gA7XpyrvdrBWmYC2+T1w/U1dqC0C5Zb6K3Dhumw3SVMpEG9oAfhjeFlQ07GDjhWQa8QWZaTJlUx3yqTxZd2Ki2Ibcb5KI1zuYoQQuoLdRGVcYHSAwkKsiMxt9o2G1vSPxjw48pknVLeQQp76d34TziYL6TyaFLHVec+ajtK9IsN83xB2HZ1Z1LBhTsbMo2cL3ryuXzfoiwd4GzyvkHGZUXrObvT561hr02yLRMtb2NIE2BYvUA7w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ri.se; dmarc=pass action=none header.from=ri.se; dkim=pass header.d=ri.se; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ri.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8izDLNgi27T/q5XLGBRMLvtBRFU4BnYZ0fYqeYPMvVw=; b=dEqmKlsww4LnT5MbBBGJ699yuvLQOwVqS64K+X3c0fx7Ah5BDEQvPB5j3boeuYzDKsQGHJlDhESY52FdIwwQogD9xPDvBUIH8WtAAp4qlZeFjYW4A7KGGT7sJwRArLvOXSfA9gYP/XR4G7B5AXwoTMldEsaurb4rXlEhhxU+yv4=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ri.se;
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17) by GVZP280MB0396.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:44::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Fri, 20 May 2022 18:03:56 +0000
Received: from GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::582d:af6:c32:fdaf]) by GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM ([fe80::582d:af6:c32:fdaf%7]) with mapi id 15.20.5273.018; Fri, 20 May 2022 18:03:55 +0000
Message-ID: <462e9338-c7f5-f6cb-c401-ca88781c8352@ri.se>
Date: Fri, 20 May 2022 20:03:53 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
Cc: "core@ietf.org WG (core@ietf.org)" <core@ietf.org>, cbor@ietf.org, httpapi@ietf.org
References: <3a2fb1c8-5c50-fa7a-0672-a73c3b6f1a5f@ri.se> <30688e38-7936-b76a-911c-3a398f2c4de3@ri.se> <01760BF8-659F-4772-905D-8C8C36FBC910@tzi.org>
From: Marco Tiloca <marco.tiloca@ri.se>
In-Reply-To: <01760BF8-659F-4772-905D-8C8C36FBC910@tzi.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------8BXtf9Izc9pF3dUL1ZTvKQfJ"
X-ClientProxiedBy: AS8PR04CA0140.eurprd04.prod.outlook.com (2603:10a6:20b:127::25) To GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:37::17)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 41d07a95-4c79-417b-1427-08da3a8b1b35
X-MS-TrafficTypeDiagnostic: GVZP280MB0396:EE_
X-Microsoft-Antispam-PRVS: <GVZP280MB03967CF93432AC6A2258BB4B99D39@GVZP280MB0396.SWEP280.PROD.OUTLOOK.COM>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: qE/5EsgUAKLOmX5uRsLDGIpDySbHnmwCYcF/0VNLq/dk8W6QvHmhDgcYbSCGM4+yJ/uU6xZAd8GeQWfsI9q6eWboEt6U9Hz4Y9Ov4AWBqgizpd+PZAsZIBcUNAk6pvBo0Yh6AlrRbgGpfOIaGq++seZ1IYEF5SbiUzlgqfgs77ti8N2kgVuewF3rDrj6QnMWoJhpXXWY8q2vmrUmoUPrDttznFcK+yNPBjVNod3XjFY6u/Z+Uro4wMdMKxzHNGIad3obz7h5L2stNBNdxtRd6CLGla+BlvvNrWzLLQXL/gab/aQHOsh6MWrDXXACFlbdVG9tBCcVz88xt39ukT5SMjML2j0QwpZm5ajB2zszYcFhajQ7CbzIvli2Xvtvpj8V3lSFKlD3t+y/LVfWYIEPFBhu3XVowdic05c99o1Tu1sircSVqLIPK/Y2UQjp7WgAwZqxScAHdaD1OsLgsgJHbYmQ8NoHQdNzVsBj84f3qrSajLplcwNzv+RvdVxFytuON8G8cIXRRop05gd0haqDJnj/+3zNtF3rMq3HwF2KrNGIpA/l5bcynVwmicvGTM4gsawNxmLkdbK2CjGknIIwIOr6tHfP1BcUAuUmjvNU8NT0Vo5E2eLHRgY9cgbNIzN9L0hrU0Fuq/YxQOi04ebjkAR6Uz81yLK6BQYE2fAxsioOzyrcPLSPG+sr1c1Xu1gKhmGQY2DYZ+YEbGFcEoPJXivNZyeaJu/6qnswklCRBzUobD2fmUXWmkIfiM18MMRui4sHnLaQDBJW/8+4dybcOCCHOZB1TgdbVuAxyX0DjoLwpNxSbLccNe6bCyG0oxqC
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(5660300002)(235185007)(6486002)(6506007)(4326008)(45080400002)(8936002)(66556008)(508600001)(21480400003)(53546011)(33964004)(66946007)(31686004)(6512007)(26005)(66476007)(2616005)(186003)(44832011)(38100700002)(31696002)(8676002)(6916009)(36756003)(966005)(2906002)(316002)(83380400001)(86362001)(45980500001)(43740500002); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: XKuDekkGkd1g0vGvwEAfR83fP9jCZS7OV+Unn1/xC1MgExzn/1efr3B6Yq/TuBS9TLpLHMEI3YQmCG+0mYGBqb+r5gMPibt5s+CoBRRodi+/CFn9QPtdLV6M5ypcZ9I/UzHb1CHZc4HxLG2Kk15wHIeQmwlDNwWPQUQQicYXoEk5a6o5+JOLdQk3nwQUxGFxhZ3YsdAqQESO8XLCgdSadsHbT8PLcDq6rB5U58tVJMG6UEHujQtd0C6kqEhxFW6pa6iSW4vS5eikhpTonpaqU6G/kPPoua1kuHjR8lm2L7cO3ClBLbiND3w+a/FpMpz8PcmFd2rypUZKZi1EErwseAlWE/Vcrr/+j8q3gIo5jLyqvvygMjP5cRQD/u4KbmBMw0nSDXu3gvr/105tILa4jnOAhxnKbzGkKK7B32Bo6PgrZzEqRUSk1Tq6tPR63UbtV9O/5KzWc1p6owkNi5nIMsMrOz/JHCwap3vYU57TvdUFJhYoXDbsfxJH1tgc8xzIwzfl0eyEjb/14cxYoSvNBWVsoiugeJsQQWa5mX/O2Syo2IAkZM1tmAykU84dnWY6E8R42FYNR3x+TYBwHayI/bstVsxX2miGBK2L1yOoJ3XLbodFsi9u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IUKt2grkor6oe4xW8XN3VFYxOBmEUXl8JPyPyWPA==
X-OriginatorOrg: ri.se
X-MS-Exchange-CrossTenant-Network-Message-Id: 41d07a95-4c79-417b-1427-08da3a8b1b35
X-MS-Exchange-CrossTenant-AuthSource: GVYP280MB0464.SWEP280.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2022 18:03:55.8768 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5a9809cf-0bcb-413a-838a-09ecc40cc9e8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: UOfUY1v3tIZnnANX4ffV7K8c/m6OjO8dKqKZ2yDNkG+Zu0lhYM0PJRFZkyUyr/bmz3gA1HWQFOStxExSm6cqjw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVZP280MB0396
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Bfy5wt3dh1akzAy42WIeP6STkqU>
Subject: Re: [core] [Cbor] WG Last Call on draft-ietf-core-problem-details
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.34
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: Fri, 20 May 2022 18:04:31 -0000

Thanks, Carsten!

I've checked the PR and all the updates look good to me.

Best,
/Marco

On 2022-05-20 16:56, Carsten Bormann wrote:
> Hi Marco,
>
>> Please find below my review comments.
> A pull request based on this is at
>
> https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcore-wg%2Fcore-problem-details%2Fpull%2F18&amp;data=05%7C01%7Cmarco.tiloca%40ri.se%7C8cdc2091d1d04dcbdc0d08da3a710311%7C5a9809cf0bcb413a838a09ecc40cc9e8%7C0%7C0%7C637886554325205728%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=oJsrbSm8BPuIPw7zG%2B40Q1HskZ2zRJTdWdBnTEl50z8%3D&amp;reserved=0
>> Best,
>> /Marco
>>
>>
>>
>> [Section 1.1]
>>
>> * Please add the usual remark "Readers are expected to be familiar with ..."
> I added the usual suspects; maybe we should have a second look what else needs to be there.
>
>> [Section 2]
>>
>> * The caption of Figure 2 can better say "Concise Problem Details Data Item".
> Indeed, we should standardize on one way to say this.  Inevitably, people will create abbreviations here, which would be “CPDDI”…
>
>> * The definition of the 'title' entry says: "It SHOULD NOT change from occurrence to occurrence of the problem."
>>
>>     Do you mean "of the same problem" ?
> Kind of: :-)
> I mean “same kind of problem”.  Discussion below.
>
>> * The definition of 'response-code' can be expanded to also point to Section 3 of RFC 7252, and explicitly say that the response code here is exactly the value of the 'Code' field in the header of the CoAP response. This would complement the statement and example in the last paragraph of the section.
> (This is now mentioned in the last paragraph of Section 2.)
>
>> * When defining the entry 'response-code', it is good to have a pointer also to Section 3.2 of RFC 8132, thus covering also 4.09 and 4.22.
> I instead added a reference to 12.1.2 (IANA Considerations: response codes) of 7252, so this is more future proof.
>
>> * "Note that, unlike [RFC7807], Concise Problem Details data items have no explicit type."
>>
>> Consistently, please consider the following changes to avoid possible confusion:
>>
>>     - In Section 1, use "problem classes" rather than "problem types".
> In the DT meeting, we were struggling for a term.
> We came up with “problem shape”, which is weird enough that it is easily recognizable as a separate term.
> Text added.
>
>>     - In Section 2, use "summary of the problem class" rather than "summary of the problem type" when defining the 'title' entry. A few paragraphs below, "shorthand for the category of the error" can also become "shorthand for the class of the error".
>>
>>     - In Section 3, use "generic problem class container" rather than "generic problem type container".
>>
>>     - In Section 5.1, as to the "Brief description" for 'title' in Table 1, use "problem class" rather than "problem type".
> All done, in a way.
>
>> [Section 3.1]
>>
>> * "Consumers of a Concise Problem Details instance MUST ignore ..."
>>
>>     I think it is better to use "data item" rather than "instance". That would be consistent with the text in other sections and would avoid confusion with the 'instance' entry.
> Indeed.
>
>> [Section 3.2]
>>
>> * "Consumers of a Concise Problem Details instance MUST ignore ..."
>>
>>     See the comment above about using "data item" rather than "instance".
>>
>> * Is it admitted to change the definition of an already existing Custom Problem Details entry, by updating the related documentation? Or is it something to discourage or even forbid, rather preferring a new entry to be defined altogether?
> That is indeed an important consideration, which -03 touched only.
> We added some text.
>
>
>> [Section 5.1]
>>
>> * For 'title' and 'detail', shouldn't the CDDL Type be "text/array", rather than "text"? If tag 38 is used, that applies to an array, as per Appendix A.2.
> Changed to “text or tag 38”.
>>
>> [Nits]
>>
>> * Section 3.1, s/so they never can/so they can never
>>
>> * Section 3.2, s/the nested map any/the nested map, any
>>
>> * Section 3.2, s/for extension that/for extensions that
>>
>> * Section 3.2, s/compact representation, in/compact representation. In
>>
>> * Section 3.2, s/principle, MUST NOT be/principle, it MUST NOT be
>>
>> * Section 5.1, s/Entries in Standard/Entries in the Standard
>>
>> * Section 5.2, s/Entries in Custom/Entries in the Custom
>>
>> * Table 1/2/3, s/RFCXXXX/RFC XXXX
>>
>> * Appendix B (2 instances), s/Concise Problem Details item/Concise Problem Details data item
>>
>> * Appendix B (2 instances), s/Custom Problem Detail entry/Custom Problem Details entry
> Thank you!
>
> Grüße, Carsten
>

-- 
Marco Tiloca
Ph.D., Senior Researcher

Phone: +46 (0)70 60 46 501

RISE Research Institutes of Sweden AB
Box 1263
164 29 Kista (Sweden)

Division: Digital Systems
Department: Computer Science
Unit: Cybersecurity

https://www.ri.se