Re: [Ace] ace-coap-est-08: using /skg with Accept Option set to TBD287

Esko Dijk <esko.dijk@iotconsultancy.nl> Thu, 14 February 2019 15:11 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 744CF13103B for <ace@ietfa.amsl.com>; Thu, 14 Feb 2019 07:11:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.89
X-Spam-Level:
X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancynl.onmicrosoft.com
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 wYX2zK8rn-vE for <ace@ietfa.amsl.com>; Thu, 14 Feb 2019 07:11:34 -0800 (PST)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50131.outbound.protection.outlook.com [40.107.5.131]) (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 81141128CE4 for <ace@ietf.org>; Thu, 14 Feb 2019 07:11:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancynl.onmicrosoft.com; s=selector1-iotconsultancy-nl; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HkrozPb9/i55Wv8DIf/cdHt1XygYynMse0AACENv59U=; b=KAivSNcTDEsegTFKGwekXvVKQRcCzpYL1w/egRfceCgzSb5T7LtykhcXVDaOZW3fYv5Kxbb/3vQg2rNkb/inUffzqLhJmtzJ1xpYrDeqdDk729/5ZrCFzaZNWSLsGeIukQHOodbXeIk0R8Kd7M3RxHXEGWEBQmEZg0Li5y5zq3g=
Received: from DB6P190MB0054.EURP190.PROD.OUTLOOK.COM (10.172.229.12) by DB6P190MB0517.EURP190.PROD.OUTLOOK.COM (10.165.140.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Thu, 14 Feb 2019 15:11:29 +0000
Received: from DB6P190MB0054.EURP190.PROD.OUTLOOK.COM ([fe80::2d19:ef79:d153:7627]) by DB6P190MB0054.EURP190.PROD.OUTLOOK.COM ([fe80::2d19:ef79:d153:7627%6]) with mapi id 15.20.1601.023; Thu, 14 Feb 2019 15:11:29 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: Michael Richardson <mcr@sandelman.ca>, "Panos Kampanakis (pkampana)" <pkampana@cisco.com>
CC: Klaus Hartke <hartke@projectcool.de>, "ace@ietf.org" <ace@ietf.org>
Thread-Topic: [Ace] ace-coap-est-08: using /skg with Accept Option set to TBD287
Thread-Index: AdTC4NsGsEh+3phhQKaxfGxN5m15WwABW3AAAAwBqoAAASTPAAAqe3YAACuA1QAAALWDQA==
Date: Thu, 14 Feb 2019 15:11:29 +0000
Message-ID: <DB6P190MB0054AF8DB03F352B346C3847FD670@DB6P190MB0054.EURP190.PROD.OUTLOOK.COM>
References: <DB6P190MB0054313C1BA6E125FA07813BFD650@DB6P190MB0054.EURP190.PROD.OUTLOOK.COM> <CAAzbHvaMTXgzKtMbpVpbXfT1EKjJu4L3zM5hesrNPgG+BqfoJw@mail.gmail.com> <9594d00cd7bc43e496c2c5073481e637@XCH-ALN-010.cisco.com> <CAAzbHvbD0B0A6L4-YCXVRhmKMRCUmTWaOJrtSZOQkbRfhsQBuQ@mail.gmail.com> <e1ebbbe0dd4541778842878c93933f5d@XCH-ALN-010.cisco.com> <481.1550155056@localhost>
In-Reply-To: <481.1550155056@localhost>
Accept-Language: en-US, nl-NL
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=esko.dijk@iotconsultancy.nl;
x-originating-ip: [89.200.42.224]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 55667ff7-6069-4af7-0a87-08d6928eb240
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:DB6P190MB0517;
x-ms-traffictypediagnostic: DB6P190MB0517:
x-ms-exchange-purlcount: 1
x-microsoft-antispam-prvs: <DB6P190MB05179A08E70C978A700566A4FD670@DB6P190MB0517.EURP190.PROD.OUTLOOK.COM>
x-forefront-prvs: 09480768F8
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(346002)(136003)(39830400003)(376002)(396003)(13464003)(189003)(199004)(561944003)(966005)(97736004)(33656002)(14444005)(71200400001)(71190400001)(256004)(229853002)(8936002)(81156014)(2906002)(93886005)(14454004)(6246003)(81166006)(7736002)(508600001)(74316002)(8676002)(305945005)(76176011)(110136005)(53936002)(9686003)(54906003)(68736007)(6306002)(316002)(7696005)(53546011)(44832011)(6436002)(186003)(486006)(66066001)(476003)(6506007)(74482002)(86362001)(4326008)(99286004)(6116002)(3846002)(106356001)(25786009)(446003)(105586002)(102836004)(26005)(55016002)(11346002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6P190MB0517; H:DB6P190MB0054.EURP190.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: iotconsultancy.nl does not designate permitted sender hosts)
x-microsoft-exch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jVGcGJJeCtkNi9QVVVoVWFXcVZQRGtV?= =?utf-8?B?eDRVM3IwWC9jbjZ2dUVUNTUvWDFUOWNiMGZXZUd6SExHMXc9PQ==?=
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: eQWkAZMKdq564P18iJ3xCwKBJrawONswaR7XyWx6bdp+tyCcW9Ml7ysXKuPxUNd7bli/1DzsVedot0jiXuRvlThVcU5NkhoP8b6BgvVFiwzRfpRU8cZLuYyQckhaDk1QeQtn0phwe3BsDry9QMJOtr66YVmGZydjBopVUJNa3IReL1tiBt/YJawVI82HyJGAmCDWKdASbrd4TrcoRTWHyg//TreTeUBQB+QUwNQ/XniZ6zxG1pEBU/d5AuqZHe2FsXHDZAiLcMxHTE3MfJEpNCO3GJrDdE8Tc0CazjBt1a0vup4FyjGvS8kdUqlSF0y1T98G5j+yhhiUOWlM1qzeIvgPy54Yc9VoeNJNEWnYl0Furq1imXQUU52y4+JlxSiM16yMtEJ1jFB1XpCxv1cgLW2IMnUvUlKgsp9hvRS5hqI=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-Network-Message-Id: 55667ff7-6069-4af7-0a87-08d6928eb240
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2019 15:11:29.2506 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0517
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/OTOX5plgYSto5uCzfSvEp4VQeEQ>
Subject: Re: [Ace] ace-coap-est-08: using /skg with Accept Option set to TBD287
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 14 Feb 2019 15:11:36 -0000

> It seems a totally adhoc way that totally subverts the content-type system.
> It really seems like we need to take this to CORE.

Well it's the definition of the multipart-ct that causes the subversion of the content-type system! CoAP as a protocol doesn't know about multipart. If we would like to re-use the proper CoAP content-type system, it means each possible combination of multipart that is being used or returned should get its own unique Content-Format ID assigned. Like Panos indicated that could amount in our case to 4 content-formats for /skg.
The use of a generic "multipart" type (62) effectively renders the CoAP content-format system useless for use in sub-content-format selection.

If not using this content-format system - using a query parameter is a fully CoAP compliant next-best way to handle this situation while still using the generic multipart type 62. The basic CoAP rules are thus still fulfilled, i.e. the resource offers type 62 and it returns type 62 always, while the query parameter merely influences the processing of POST on this resource as is quite common in HTTP/CoAP operations. For example in HTTP I could POST some data to a resource that creates different HTML layouts that can be selected by a query parameter:
 POST /genReport?layout=nice1
 { data }

It still returns one and the same content type (HTML) although the contents may be totally different, depending on the 'layout' parameter. Same reasoning goes for our multipart content-format. In CoAP semantics, the inner types of the multipart are in no way bound to the requested Content-Format and may be arbitrarily changed depending on query parameters. 

But I agree this can be taken to CoRE in context of the draft-multipart-ct discussion; see what people think about this issue.

Esko


-----Original Message-----
From: Michael Richardson <mcr@sandelman.ca> 
Sent: Thursday, February 14, 2019 15:38
To: Panos Kampanakis (pkampana) <pkampana@cisco.com>
Cc: Klaus Hartke <hartke@projectcool.de>de>; Esko Dijk <esko.dijk@iotconsultancy.nl>nl>; ace@ietf.org
Subject: Re: [Ace] ace-coap-est-08: using /skg with Accept Option set to TBD287

Panos Kampanakis (pkampana) <pkampana@cisco.com> wrote:
    > Hmm, that is a fair point. I don't think it is warranted to register
    > four more content formats for all possible format combinations in the
    > multipart response.

    > It looks to me that your proposal of using Uri-Query in the request in
    > order for the client to define the supported formats of the requested
    > resource/response is a good one.

It seems a totally adhoc way that totally subverts the content-type system.
It really seems like we need to take this to CORE.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        |    IoT architect   [
]     mcr@sandelman.ca  http://www.sandelman.ca/        |   ruby on rails    [