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

Thomas Fossati <Thomas.Fossati@arm.com> Tue, 07 April 2020 20:27 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 2E0173A115C; Tue, 7 Apr 2020 13:27:02 -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=r9Ibp/Dq; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.b=r9Ibp/Dq
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 g_K7xzQVZMoo; Tue, 7 Apr 2020 13:27:00 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20608.outbound.protection.outlook.com [IPv6:2a01:111:f400:7d00::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 F0BBB3A112B; Tue, 7 Apr 2020 13:26:52 -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=sCoCo7yW2SE4EwbAakZsl2nNZC8AHni1SVdG5hXv1gQ=; b=r9Ibp/DqGGLw7DkX1HqXdAAeyw+xoDQwhsJeHr8xOu5Vf86hQHMYSb1NIkOo551lRWM6yLO/Y2pAmU8xZQt4kM3z11/YKVC9JWLj2LfBLMIf3qEiuAFPxZBWfmYR00sDY2n8LfflTLZcnDMnR3Q3Zk8Ls/fF3l9X48KE1ADWrPs=
Received: from DB6PR0501CA0033.eurprd05.prod.outlook.com (2603:10a6:4:67::19) by DB7PR08MB3324.eurprd08.prod.outlook.com (2603:10a6:5:22::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Tue, 7 Apr 2020 20:26:50 +0000
Received: from DB5EUR03FT043.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:67:cafe::a4) by DB6PR0501CA0033.outlook.office365.com (2603:10a6:4:67::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20 via Frontend Transport; Tue, 7 Apr 2020 20:26:50 +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 DB5EUR03FT043.mail.protection.outlook.com (10.152.20.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Tue, 7 Apr 2020 20:26:49 +0000
Received: ("Tessian outbound 4b84da486446:v50"); Tue, 07 Apr 2020 20:26:49 +0000
X-CheckRecipientChecked: true
X-CR-MTA-CID: 7ea060a37ce5cd76
X-CR-MTA-TID: 64aa7808
Received: from ebf483565ea2.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6BB72EE4-3F5A-4AFA-9437-F55145D6FF72.1; Tue, 07 Apr 2020 20:26:44 +0000
Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ebf483565ea2.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 07 Apr 2020 20:26:44 +0000
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AYhh7iE/jGsMmE/X7uiSH0pom2pSUTUm8cC1klfzR88WY+5TScWilXtm3jBQKuA4cuk5WO47HnvIQNns/b0K3TYEzR4w231dO1QAGV92C3oj2GVucKExss1ZpWq8WGsvBZ6td9CoyzHCrW1+y3ZBd1g3vI/VYx2rCQGYIxJ57qlPcw2PYud777zOcKJgAwQHcgc3RheJUIL5ygybUvd9znfJqKH6m6SCI4QDGdGdTtHPhORWuXiZ2my8nnOn4/Ybxnzxn5iAoALvDWXyw9HJIkv2DEb15RkKDPoik8f3rdbKS+PaQx4D9HKw7sN1m1cy+3nQG9E6HRD7TVgb3Q2E3A==
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=sCoCo7yW2SE4EwbAakZsl2nNZC8AHni1SVdG5hXv1gQ=; b=TfLX0ORMgMoy+yExyYuNi7+j5HVCsciIVVJRo/6oplRnWhVR7+unbPg7y51J/aSzPSzHZmcMt4eXPXTKbkOboTuGF7+0uIfiOQ21VWKlj6XsrowwbSUKMpMyYHww4pxD4TbgUpuka4m0o/DrTqA71O1sBKl0Qdiedg/mucJyW5AiKbF0nDDFHYD/uWOAU5CduUjnfudABNHtRCKUsnD8qHM7TLTdhAro272OWWTNt07eBw3IOPOBRdzhbq/8DoODwx3EC0EmlW0FlMAaJHJ3NUe5fspEqzV35bibXaityfTxXmWoirgBSX48mEUO5FWrDjj2x2Ip5MHhS0z9TrW5Og==
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=sCoCo7yW2SE4EwbAakZsl2nNZC8AHni1SVdG5hXv1gQ=; b=r9Ibp/DqGGLw7DkX1HqXdAAeyw+xoDQwhsJeHr8xOu5Vf86hQHMYSb1NIkOo551lRWM6yLO/Y2pAmU8xZQt4kM3z11/YKVC9JWLj2LfBLMIf3qEiuAFPxZBWfmYR00sDY2n8LfflTLZcnDMnR3Q3Zk8Ls/fF3l9X48KE1ADWrPs=
Received: from AM6PR08MB4231.eurprd08.prod.outlook.com (2603:10a6:20b:73::23) by AM6PR08MB4660.eurprd08.prod.outlook.com (2603:10a6:20b:c1::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.20; Tue, 7 Apr 2020 20:26:41 +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.2878.022; Tue, 7 Apr 2020 20:26:40 +0000
From: Thomas Fossati <Thomas.Fossati@arm.com>
To: Christian Amsüss <christian@amsuess.com>, Jim Schaad <ietf@augustcellars.com>
CC: "draft-fossati-core-coap-problem@ietf.org" <draft-fossati-core-coap-problem@ietf.org>, "core@ietf.org" <core@ietf.org>, Thomas Fossati <Thomas.Fossati@arm.com>
Thread-Topic: [core] Review of draft-fossati-core-coap-problem-02
Thread-Index: AQHWDNieE/Li9vLsLUC6YCdEhPVEXKhuLMGA
Date: Tue, 07 Apr 2020 20:26:40 +0000
Message-ID: <41D4AA49-192A-478C-9F26-06E1CE5D991E@arm.com>
References: <703EAB3E-A9CC-4260-8B52-6690BACFA62C@arm.com> <010b01d6076d$ab36bfd0$01a43f70$@augustcellars.com> <20200407123230.GC2743407@hephaistos.amsuess.com>
In-Reply-To: <20200407123230.GC2743407@hephaistos.amsuess.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: [217.140.99.251]
x-ms-publictraffictype: Email
X-MS-Office365-Filtering-HT: Tenant
X-MS-Office365-Filtering-Correlation-Id: f7eea27f-6f94-4a9e-f6f1-08d7db320061
x-ms-traffictypediagnostic: AM6PR08MB4660:|AM6PR08MB4660:|DB7PR08MB3324:
x-ms-exchange-transport-forked: True
X-Microsoft-Antispam-PRVS: <DB7PR08MB3324E8D51FEE8182633633E29CC30@DB7PR08MB3324.eurprd08.prod.outlook.com>
x-checkrecipientrouted: true
nodisclaimer: true
x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:10000;
x-forefront-prvs: 036614DD9C
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)(366004)(346002)(396003)(136003)(376002)(8676002)(6506007)(64756008)(66556008)(478600001)(81166006)(8936002)(66446008)(6486002)(66476007)(91956017)(33656002)(4326008)(71200400001)(54906003)(66946007)(81156014)(53546011)(76116006)(86362001)(110136005)(316002)(36756003)(186003)(5660300002)(26005)(2906002)(6512007)(66574012)(2616005); 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: 6KuFiN1cJvlUh8WeooAONEPBlkb3w1fiKwUpKhQDX/0sKWh6awxDE3qY/wsSVMRolo9xPD4VnMERN+CE0n61oWcGCisA0IxwmOHP+hxNsCrNgcZWXfHJ0YkzlZCUqItrcIBPQrh3t2GX9RZ/8OyPONkFKZ7NG0afzRPWwOaFDW8JSlE3LxnH3X2sfQ4RNu+btgNj+M3YRyLZl3PKsFFKJDNmFhPQefHsc85vDzpwHjPBa8KUfuR8whx2JLBAESUAP1g6F+3ZqD9B1b0iKBnZ4txYxscITppkZmkUGyqTvRG2+7JU8C1Fl1pK3I0RViPJ/M3Rdav6zgiNnaJQskU//X8gUfMhDjMMKQC8kGvEaWqzDpOuvn03NeftG1PmOhjDugMuF8JorGFyH/Fi8ysOv9m970QVRQ7MI0mQSkescXLoyK2iNb1qBtF14CICRio6
x-ms-exchange-antispam-messagedata: zgFXWqT7WAZepssmQSF9ndyEly9tXMokpJ3G1JbgEvhmM1eAHR6gE7IXWIz97063+XNs9QAc4qTyQiXvW15Rd7G6HzFwfa9nRn7nsxdrrHOtWFSIkF+bTgcip5FNll93EFeu48EcQNr21gjFnn0q2g==
Content-Type: text/plain; charset="utf-8"
Content-ID: <9687E23C00EF734D93ACC8C0FFF749B9@eurprd08.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4660
Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Fossati@arm.com;
X-EOPAttributedMessage: 0
X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT043.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)(396003)(376002)(39860400002)(136003)(346002)(46966005)(316002)(33656002)(5660300002)(36756003)(86362001)(110136005)(8936002)(70586007)(81166006)(54906003)(81156014)(70206006)(66574012)(26005)(8676002)(2906002)(4326008)(6506007)(6512007)(186003)(26826003)(53546011)(356004)(450100002)(47076004)(336012)(478600001)(6486002)(2616005)(82740400003); DIR:OUT; SFP:1101;
X-MS-Office365-Filtering-Correlation-Id-Prvs: 82fb3d11-2985-4001-d3d4-08d7db31fb16
X-Forefront-PRVS: 036614DD9C
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: XhyhsI0zvBwt8ijdsmTnlDMFrH7XdyNq2gOP/JuD/todRjkmyzxzg8lfco0RFFiDVgJkdF0PZ3OYtTeHWbs8hsIBQhXd1slotEr4zmKYcL7UNiWFgCJSefHgtHROTH6KvpTcc6zU2bDhAi32Y+ZEZO0tB20GYZLTMIF44voC3ca9NyV6Is3EDauUmeDqlbSOjK6+XeW0Yi1TSGehGA68b65JL3ezKQDYt4xNn9Nkf9bireMwsmWvJt/vY80TZF+DtKZZ7ydYGFqUXP5tL640OG6s16sUaqjl9AWL6nA+TGMy1vLXJG/0FzB7a7q942ij7dbJlPODworIFwUtHs91IjcBTHXgjzxJp6JpVlMoOO31JDIUA46t3vR+ravtyXYJ3qGqJ5NCNGlBLkYHKap5CbGjX5eLyQzWk7FkkMoLH+Ok8AUg9yMiWsu1iUIpGGSYrmUE1NKDnBZTNOALWAc21eLuoWxuRVH/Zxt4T9zMX76pZARg+Jl5NlNu4tcAuJzfq7GJ/aNkc+OreAHmYeaP1g==
X-OriginatorOrg: arm.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2020 20:26:49.7322 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: f7eea27f-6f94-4a9e-f6f1-08d7db320061
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: DB7PR08MB3324
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/FG2cX-_H54AJEpIiC68h32Y3VIs>
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: Tue, 07 Apr 2020 20:27:07 -0000

Hi Christian,

On 07/04/2020, 13:32, "Christian Amsüss" <christian@amsuess.com> wrote:
> On Wed, Apr 01, 2020 at 10:36:10AM +0000, Thomas Fossati wrote:
> > > [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"?
>
> Are these cases not independent cases anyway?
>
> If there is a known condition, its problem-detail is returned. On
> exceptions, there is no problem-detail but a stack-trace (without a
> content format).
> But as I understand that use case, you don't need both simultaneously.

It doesn't necessarily have to be mutually exclusive.

> Of course, a framework might create an entry for (ns=my-framework,
> type=0, title="Exception in resource handler", response-code=5.00,
> coapp-roblem-details-extension = [* stackframe])

Sure, an extension could work as well.  In fact, one thing I'm trying to
assess atm is whether we feel there are good reasons to subsume the
diagnostic payload (or at least one specific usage pattern -- the "API
developer"'s) under the problem structure or, as you suggest, this
should be left as a decision to each and every API.

ISTM that if we take Jim's approach, there are (at least) two options:

1. if trace_enabled: extend the "detail" string with diagnostic info;
2. if trace_enabled: add diagnostic info to a separate channel.

From a log consumer point of view, a more structured approach (i.e., 2.)
seems easier to ingest & process.  From a producer perspective the cost
is the same.  From the pov of the transport, 2. inflicts a slight
increase in bandwidth to support the extra structuring but I'd expect it
to be dwarfed by the diagnostic payload.

Cheers, thanks!


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.