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

Carsten Bormann <cabo@tzi.org> Fri, 20 May 2022 14:56 UTC

Return-Path: <cabo@tzi.org>
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 A12F5C180A7D; Fri, 20 May 2022 07:56:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 WepGfaGvOVe4; Fri, 20 May 2022 07:56:57 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 98556C180A7C; Fri, 20 May 2022 07:56:54 -0700 (PDT)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de [80.137.173.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4L4VDg0s50zDCcK; Fri, 20 May 2022 16:56:51 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <30688e38-7936-b76a-911c-3a398f2c4de3@ri.se>
Date: Fri, 20 May 2022 16:56:50 +0200
Cc: "core@ietf.org WG (core@ietf.org)" <core@ietf.org>, cbor@ietf.org, httpapi@ietf.org
X-Mao-Original-Outgoing-Id: 674751410.719115-ca8f9b5b62f5c6f524a32496fe1231fe
Content-Transfer-Encoding: quoted-printable
Message-Id: <01760BF8-659F-4772-905D-8C8C36FBC910@tzi.org>
References: <3a2fb1c8-5c50-fa7a-0672-a73c3b6f1a5f@ri.se> <30688e38-7936-b76a-911c-3a398f2c4de3@ri.se>
To: Marco Tiloca <marco.tiloca=40ri.se@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/sxiPvWzbxzcTmnV-6mIzRBLR_7k>
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 14:56:59 -0000

Hi Marco,

> Please find below my review comments.

A pull request based on this is at

https://github.com/core-wg/core-problem-details/pull/18
> 
> 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