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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ir9uZ3K72nR3scsanIddOWMsPHjDRJoucsj8DHy1fI7A4daAEbGKocTp+hMN7o+c0ZmYPmaNMY4+3j+MJ2HFhZslk0UUAGKru4vOqWYoH6wjwcuo9SPwBolAYF4aZi+NUL7eOr95hK73kQ6wFjzY1EGlA7RsoKTe8LI12xfE9VSpIid5ATsV6yWdLj7P6B8DdD4Lc3SZdPW4xKew/goRFY32emg8i7XGSylA8rvJ3+8h4eM2B5FpbIx+d6/PUUhUaWqVPDkUx4U3r0X/cn6vuET55/X1T9cb0fWeGzHLG1w==
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>; Esko Dijk <esko.dijk@iotconsultancy.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    [