Re: [core] Review of draft-fossati-core-coap-problem-02

Thomas Fossati <Thomas.Fossati@arm.com> Wed, 01 April 2020 10:36 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 44B3F3A079E; Wed, 1 Apr 2020 03:36:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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 (1024-bit key) header.d=armh.onmicrosoft.com header.b=ZyRuHF+w; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=ZyRuHF+w
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 B5rwpf74Alxk; Wed, 1 Apr 2020 03:36:23 -0700 (PDT)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on0608.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::608]) (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 7376C3A0794; Wed, 1 Apr 2020 03:36:22 -0700 (PDT)
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=W/6Q3xYNqmEy4IsVgqz1ktMUr87UToeUut/N73IUjwc=; b=ZyRuHF+wOP6GfSE0Yvxp4ag5ZQbOUbkisVT8piMfoZwhFML6eBVHNdtA0JSSv674Ck1rOY52T2ovt3lSrvlU7RNtdu8MWgQE5PChJQDlO5IsGQyCaDeG6wqZ4s1h+XA/Bb1/JK2nY6F3NZZLDZDC3XDYUz5mnKaxAuBLRx/ddi4=
Received: from AM5PR0701CA0072.eurprd07.prod.outlook.com (2603:10a6:203:2::34) by HE1PR0802MB2553.eurprd08.prod.outlook.com (2603:10a6:3:df::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 10:36:19 +0000
Received: from VE1EUR03FT023.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:2:cafe::b7) by AM5PR0701CA0072.outlook.office365.com (2603:10a6:203:2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.12 via Frontend Transport; Wed, 1 Apr 2020 10:36:19 +0000
Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; ietf.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;ietf.org; dmarc=bestguesspass 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;
Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT023.mail.protection.outlook.com (10.152.18.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Wed, 1 Apr 2020 10:36:19 +0000
Received: ("Tessian outbound e2c88df8bbbe:v50"); Wed, 01 Apr 2020 10:36:19 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 7d08154c18906c68
X-CR-MTA-TID: 64aa7808
Received: from 406958c7fa6d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F692BFF2-B5FA-4442-9EA1-46935F64B256.1; Wed, 01 Apr 2020 10:36:13 +0000
Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 406958c7fa6d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 01 Apr 2020 10:36:13 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DUyaBb/Sas1aAK8HVFWPNlkLdiDdpdMpT7eDYGRI1Z9+Hu/C9FHXmT4AKpJfsd9vhvkzFE4QE4IrZa4/AvAdG9A2WhTFiquS0rImo7Hv9UDm8JuwhmcvFz8m663FDoKd/o2TwS1ifRwYWyV6/WXCgX95u02GYNIfMZsETGNqx3zcljUzdOR/gkBJ0g7qc5p8xpP+1mxfRo4Uc4iC32Nh9zT0cjsoylyjCD/Qx6Pv1rzAYlbe7jXF0CvkS/dTO6nwIEyqHoW8A76YxBdSZVO6364ULhddel35jcVNApIAu0YA0zWOUhI3qq/+/T4YxqP1LO6vvEzmbKa21MIkpvzNBA==
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-SenderADCheck; bh=W/6Q3xYNqmEy4IsVgqz1ktMUr87UToeUut/N73IUjwc=; b=BMa2/9BGlvEpGOQ+3Crgy6wZD97jm45+aNaij9cfVrVdLu9fhbSyhboXxrGKRsjkcDtfuLEXsQhoJ8UqH4qY0fsahTZqS8xHV9JgzKPQr/RlrLz+wRl0EFt8IBe4qVSZbQHY3d5azF7RllHKlD2Ar07JOy3TVeMik0UrWZobZx4ikYhQlo9Qc29sLXiIGAFd4fZwRwz8OFkBhE0pRL3TuagJBBk6Q7n/fB9pPKOi5UHj8k0E0i9pr+sSC1rH9vtjFbqudpz+PxcgWtsMMvG9uZimSI+bTFaem9Pb+hptaTAhFmbpbFTW0DGuKcZBEFMNiys/1DDpfKqlvSeYgtBxJA==
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=W/6Q3xYNqmEy4IsVgqz1ktMUr87UToeUut/N73IUjwc=; b=ZyRuHF+wOP6GfSE0Yvxp4ag5ZQbOUbkisVT8piMfoZwhFML6eBVHNdtA0JSSv674Ck1rOY52T2ovt3lSrvlU7RNtdu8MWgQE5PChJQDlO5IsGQyCaDeG6wqZ4s1h+XA/Bb1/JK2nY6F3NZZLDZDC3XDYUz5mnKaxAuBLRx/ddi4=
Received: from AM6PR08MB4231.eurprd08.prod.outlook.com (20.179.18.151) by AM6PR08MB4072.eurprd08.prod.outlook.com (20.179.1.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18; Wed, 1 Apr 2020 10:36:11 +0000
Received: from AM6PR08MB4231.eurprd08.prod.outlook.com ([fe80::9807:78f0:434f:2b9f]) by AM6PR08MB4231.eurprd08.prod.outlook.com ([fe80::9807:78f0:434f:2b9f%7]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 10:36:10 +0000
From: Thomas Fossati <Thomas.Fossati@arm.com>
To: Jim Schaad <ietf@augustcellars.com>, "draft-fossati-core-coap-problem@ietf.org" <draft-fossati-core-coap-problem@ietf.org>
CC: "core@ietf.org" <core@ietf.org>, Thomas Fossati <Thomas.Fossati@arm.com>
Thread-Topic: Review of draft-fossati-core-coap-problem-02
Thread-Index: AdYGycO1MeWT5q/ZR2SRe86TscydwAAogoeAAAB26YAAKwUAAA==
Date: Wed, 01 Apr 2020 10:36:10 +0000
Message-ID: <703EAB3E-A9CC-4260-8B52-6690BACFA62C@arm.com>
References: <00cd01d606da$9815a1c0$c840e540$@augustcellars.com> <766A1380-F2C9-4C8E-869F-8E1B3DDB4A22@arm.com> <010b01d6076d$ab36bfd0$01a43f70$@augustcellars.com>
In-Reply-To: <010b01d6076d$ab36bfd0$01a43f70$@augustcellars.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.35.20030802
Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Thomas.Fossati@arm.com;
x-originating-ip: [82.11.185.80]
x-ms-publictraffictype: Email
X-MS-Office365-Filtering-HT: Tenant
X-MS-Office365-Filtering-Correlation-Id: 0f7353fe-7b54-4d3d-2407-08d7d62883b3
x-ms-traffictypediagnostic: AM6PR08MB4072:|AM6PR08MB4072:|HE1PR0802MB2553:
x-ms-exchange-transport-forked: True
X-Microsoft-Antispam-PRVS: <HE1PR0802MB2553843F1DD0A13C9AC85C0A9CC90@HE1PR0802MB2553.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000;
x-forefront-prvs: 03607C04F0
X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB4231.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(39860400002)(136003)(396003)(346002)(366004)(376002)(2906002)(53546011)(6486002)(66476007)(4326008)(86362001)(6512007)(478600001)(66556008)(5660300002)(66446008)(66946007)(2616005)(64756008)(91956017)(36756003)(33656002)(81166006)(76116006)(186003)(8936002)(81156014)(8676002)(110136005)(316002)(26005)(54906003)(6506007)(71200400001); DIR:OUT; SFP:1101;
received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts)
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam-Untrusted: BCL:0;
X-Microsoft-Antispam-Message-Info-Original: 4EFW11ARwI0TTkp0YBXMJ9tBFHA6kL21S9TGveDQgId0DlN4+wSN5VKMTdzlaNXu/UsA+6jlJTmMxQyhurqSfKrD8aGomiAYvMEULB5a+7Cc4evdlqvRtWEzJcs/Sj82u6FNrLfOaT26mH0hTWlGBohLtk/SV3C8TNOwLGS/xTXx36IvG0BX/Uox34yIumAuo3azRoiMG+vfI0n4fZMOrmhWf/4TyROifkVW4w7yj1NQ+ZnploQtC/3hWu0ptivWXkDq9hd+cOR+PxKNfjmo2to9UpzJZSiUiURwNmXqsp5BCLcNeARPl921jvO3Zt4Ky0YC425pP4TTpv+pLaZB9KBSUhdkcS/T+zrpl9d5LcJ9dLS1TQsUdg+mDdc3IvNGDeBM0S/nYt4QGP9Y47ENtDPIe1VzxeMGYqVwZ9ZxgBnzaGDoK57ghCxsJD9ymywd
x-ms-exchange-antispam-messagedata: ljuTp85CakllCzzt412MSfIK3AEhggDDb6DbE99tvWmw22WoeS5WZ/iMlqdn7b//g7DrVHT6WNlch7de3CxJ1/sgEEFBXLzPPXf2vtweZv4h30N3ShJKHsQJ/xHXKpZgneedsdzKTP9UNvgzDcsRzQ==
Content-Type: text/plain; charset="utf-8"
Content-ID: <538613A42A2F4F4AB9B1A8972DECEF7D@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4072
Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Fossati@arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT023.eop-EUR03.prod.protection.outlook.com
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; SFTY:; SFS:(10009020)(4636009)(136003)(39860400002)(396003)(376002)(346002)(46966005)(478600001)(36756003)(70586007)(186003)(110136005)(2906002)(54906003)(70206006)(26005)(316002)(5660300002)(6486002)(336012)(8936002)(33656002)(2616005)(6506007)(356004)(53546011)(47076004)(36906005)(450100002)(81156014)(26826003)(86362001)(8676002)(4326008)(81166006)(6512007)(82740400003); DIR:OUT; SFP:1101;
X-MS-Office365-Filtering-Correlation-Id-Prvs: 47bee689-5f42-4ff5-fac0-08d7d6287ec0
X-Forefront-PRVS: 03607C04F0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: ECF3IO9sbP2jtgLL7Ljn8C0vBCPPookzYjjFKewGlCRE0yeH6bBB/Dw5wRVr5yehD9GFtpjZmpg/3Hl8+ABevsY5C2LoA0v9pPqpmzEpCmhyaXh7FH67TBYTdGxjeBdcB5NUiCIQhJGQTUpOXi9aJDJXFRkCfaIWm5BktWG4hiReEtxoltRotTyeuszIV1xEIEloBC8C5YqZw5CMfxCvIn8gcMXj+dX3Lzr0I/ZweTbEAe3dQYgLZkgjpRaGo9f63j6ZNUJZgFV5VXiopsbm4we3usIATRlpg156NsyCdqzMfIxuyriPeDv7kJ/gwIIucdR61HMAfqUpqHohC/aAjk/e2XXxXS5qpp1Os4YfRb+NmSt+jGto3SYll90BB8t0Yk+PuRreVISDn3jChSDz6/4FaiDGP310w/8Uh/XtXKUDpMduSPm7eeaOpDO0XZ5EBoBQHwxkA3QdT2j2s0vMjiSEICb9lHPTYfNneLLNEJ+vfmPGOYffMEglKTcOV7Ii2CsN7/nn79hYaJKL7qnpNg==
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2020 10:36:19.1041 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 0f7353fe-7b54-4d3d-2407-08d7d62883b3
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-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2553
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/QYsosZdVk9JAdNIJbTkLhZMqhrc>
Subject: Re: [core] Review of draft-fossati-core-coap-problem-02
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: Wed, 01 Apr 2020 10:36:25 -0000

On 31/03/2020, 16:04, "Jim Schaad" <ietf@augustcellars.com> wrote:
> > I am torn between that and Section 4.3 of RFC 7322, last para:
> > "[...] the Abstract must not contain citations"
>
> [JLS]  The rule is that the text of the abstract is to be able to
> standalone.  This means that "[RFC7322]" is not permitted, but "RFC
> 7322" is permitted.   Referring to a document by a "well defined"
> lookup string is ok.  This means that referring to an eprint would be
> discouraged.  Note that most of us just use an <xref> in the abstract
> and make the RFC Editor staff clean this up.  But you might get
> complaints from that usage during final review.

Thanks for the explanation.  Will do.

> > Yep, application/coap-problem+cbor and diagnostic payloads are
> > mutually exclusive.  This was a precise choice because they seemed
> > to have different audiences (API user vs API developer).  That said,
> > the intersection between API users and developers is not empty, so
> > this might actually be in scope, apart from being obviously useful.
>
> [JLS] Given that I would want to test the problem info being returned,
> getting unexpected errors with information is useful for me.  This is
> the basic method that I have been using for my ACE server where a
> diagnostic string with the problem details is returned, but a stack
> trace is included in unexpected conditions (i.e. the code threw an
> exception).

I am certainly not opposed to that.  Happy to call it "diagnostic"?

> > Good point, we haven't thought about this.  Not sure how one can
> > successfully handle localisation in CoAP though.  It seems like the
> > only sensible recommendation we could make here is "try to choose
> > based on present and future audience.".   That, or force English
> > from the onset?
>
> [JLS] In some ways the method that is used by Windows to log events
> works out pretty well, but might be too weighty for this.  In that
> case a list of information with the title and a set of attributes are
> returned from the server (event) and these are then placed into a
> localized string.  It might be possible to provide a default string, a
> set of attributes and a method of getting a localized string if
> needed.

Sounds like we could do something slightly less sophisticated but maybe
sufficient in most situations by letting the application map "ns" and
"type" into a localised "title".

> > > If negative values are used for private details for a public
> > > namespace in section 5.2.1 - How I am to understand which the
> > > different private registrations are being referred to?  Or are
> > > these all expected to be registered?
>
> > Yes, the idea is that when you go public, you need to register all
> > the "extra" details your API is using picking from the unused parts
> > of the 0..4294967295 space.
>
> [JLS] But in that case you would not have private details for a public
> namespace?  If the CoRE group creates a basic public namespace and
> setups up a type FOO.  Is it legal for me, as an individual or
> company, to augment that and return negative attributes for that type?
> Think about the example in A.2 being in a public rather than in a
> private namespace.  Is the -1 attribute legal?

I think now I get what you are saying.  We need to be able to clearly
separate two cases:
(1) stack X wants to enrich an *existing* problem type with some extra
    keys;
(2) private API Y is making use of a number of "negative" keys and now
    needs to go public.

I guess we could have that kind of clean cut if we grouped (1) into a
nested map and handle (2) using the kind of promotion via registration
I was hinting before.

WDYT?

cheers!
--

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.