Re: [media-types] Media-type registrations for senml-etch+json and senml-etch+cbor

Ari Keränen <ari.keranen@ericsson.com> Wed, 07 August 2019 19:24 UTC

Return-Path: <ari.keranen@ericsson.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB0F012069F for <media-types@ietfa.amsl.com>; Wed, 7 Aug 2019 12:24:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.334
X-Spam-Level:
X-Spam-Status: No, score=-1.334 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 6Tuwc5p3Misv for <media-types@ietfa.amsl.com>; Wed, 7 Aug 2019 12:24:43 -0700 (PDT)
Received: from pechora8.dc.icann.org (pechora8.icann.org [192.0.46.74]) (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 B3FBA1206A2 for <media-types@ietf.org>; Wed, 7 Aug 2019 12:24:43 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140051.outbound.protection.outlook.com [40.107.14.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by pechora8.dc.icann.org (Postfix) with ESMTPS id B9BA6C071E for <media-types@iana.org>; Wed, 7 Aug 2019 19:24:42 +0000 (UTC)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vfuqw2JKahFvzeSQwsnUtlgAJfFu6SwXjo9HeUdIdJ0oYMznoUFmibhROs8xIFNpldppSevfQK9l9HJlwAo6hG35Y2/kg2zVF2+Wq0k2GpZk/1I9gtX5+OQu1T2olBoq8pT4qho2q+vJfe7D3G9S6wA2tmqIMreiFjvRPhffLxPgy6PcHWL4lY+ClYoOhkSskfVZKKLOjYe0YYn8XCZcGD+9VhSExpyPhhkH7U0O6f2knreBAxdg+v+n98OEkK2r9dwn/e9RBRo+pFV9AEtp3iiBj5wC4lo/HMwn2GNvQZtd+aJFykndHB5dc2XJFUqJ97fZ3fh1XHTH8ks8ff+6oQ==
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=cNPs7BQMXPGqpZaRItK8mg3cTKUOhB4Dy8cfDq6kW7E=; b=PQKVHXzdhxWnSuGCPfnSS7mkeZnzWGWykRK5AXsYxTC85TMFUwCWcNf4eovY+yQkw5x4iTwDGcoH7naGV+iSwwlTSEpmGENRSY0ARHi9oxbZvz32EDzzjyuqcrnRdn1L8wZoXRzh+7aGEJsg6fR/gzGCo+y8QxI3va5mFHflY/Tq49Yzc/1drGlCfCR9qJ6u50iLi7kbzycwWb71Hhgp2HUDFviMWkDbMWqgnwNRhuzP0HAkleJPElK1nKW1ditJk+siGpjbigzbRJuU+5Kqu0iibk+ZHpt/UFv9LWJsn4E+mu8OvFMPJVErOClAcTZU3oCsB43wyNZTgUQNET0W9Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cNPs7BQMXPGqpZaRItK8mg3cTKUOhB4Dy8cfDq6kW7E=; b=B1PEkIqXJymapkQiRShd+gGyNLXZfDmAR4yuZplSeXBjG1T/vWLR7yWNXmrgRTuaGi0mTr55Vk52RbRYWTQg9ADk9n+k6xhrrJjTUp1eASZU4epRs0vVFEQ4uwAwTKsMJH6STb2oBjNdipP9WlqdGfbLRCTsA0GMVpHAav+2z6k=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB4441.eurprd07.prod.outlook.com (20.176.167.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.11; Wed, 7 Aug 2019 19:24:20 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::7497:adf9:ce97:699e]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::7497:adf9:ce97:699e%3]) with mapi id 15.20.2157.015; Wed, 7 Aug 2019 19:24:20 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>, Carsten Bormann <cabo@tzi.org>
CC: "draft-ietf-core-senml-etch@ietf.org" <draft-ietf-core-senml-etch@ietf.org>, "media-types@iana.org" <media-types@iana.org>
Thread-Topic: [media-types] Media-type registrations for senml-etch+json and senml-etch+cbor
Thread-Index: AQHVOKK8tXmWRdOE+0ye9emsjW67pabwMSAAgAA7TYA=
Date: Wed, 07 Aug 2019 19:24:20 +0000
Message-ID: <46745878-E715-4319-B4E7-110A59FE0091@ericsson.com>
References: <BAC65ED6-6CB3-4DC2-9B9B-F8CCB9D1C910@tzi.org> <6b36aa6f-ddec-7b5e-6760-7a0061ae3c24@isode.com>
In-Reply-To: <6b36aa6f-ddec-7b5e-6760-7a0061ae3c24@isode.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1b.0.190715
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-originating-ip: [2001:14bb:150:480b:71b0:1515:75fa:3ffb]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 36b13b7e-5375-4ebe-e3ae-08d71b6cd8cd
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:HE1PR07MB4441;
x-ms-traffictypediagnostic: HE1PR07MB4441:
x-ms-exchange-purlcount: 5
x-microsoft-antispam-prvs: <HE1PR07MB4441E521D3071FF715B73E7885D40@HE1PR07MB4441.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:3044;
x-forefront-prvs: 01221E3973
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(136003)(396003)(366004)(376002)(199004)(189003)(66946007)(76116006)(91956017)(85182001)(6246003)(64756008)(66556008)(66446008)(71190400001)(6116002)(66476007)(71200400001)(6512007)(478600001)(4326008)(76176011)(8676002)(81166006)(81156014)(8936002)(2906002)(25786009)(6506007)(6306002)(7736002)(305945005)(53546011)(53936002)(102836004)(6486002)(476003)(2616005)(46003)(11346002)(86362001)(446003)(229853002)(186003)(85202003)(99286004)(6436002)(14444005)(256004)(5660300002)(966005)(54906003)(14454004)(36756003)(110136005)(58126008)(316002)(66574012)(33656002)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB4441; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: rU8p5u1We6h1+xLcWv2Yl1PjLu74LZR0rcd9M6ZWccmcs1KJN4JiIJ1UrCpAGQ9YwR+U2TJUu2/VMkQkytFrdXrjbK8gKKnwebkoQloIHavnnf0li3RVLAHIubmo9zVY2GU5WR0T+shKguCsxJ7xFs5qUUm7HCnBnb77f8T64xtzN0IwBsB5NKkHP7YKnCWPKXyfREulOO0gmfHselDHkomKp867xAgs5wnzNWCl6eOi10bAlq0ykuR1TdWLCFBPI2J6TeZ0blQ47vAnbsIRxYRxMdySNJ+sEivnal6uADJQEMTnqc0prhNz0D30ZyN3JyAmNyvhN97JBaawTYMFZI6tDeHJepdVTRRHrD5dWVWClydiivudgZ9iW86IKD919TGHlX+oZVogx6WF93ToyNnmz7I+6l4LA/lR0tbVIBI=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <749165B58E2160449A5AA1F1F9C9943B@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 36b13b7e-5375-4ebe-e3ae-08d71b6cd8cd
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2019 19:24:20.2315 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: VEVkuyBCVeuzzCwX3cDk/ECoRT4JnHcRAHyi2QOs9AlLTgjWdEpHVy3zf0MuL+OKrvD9Xtq8/o2IAWEckGUhrRPErjfo7S1Inf/mnRobGZM=
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.2 (pechora8.dc.icann.org [192.0.46.74]); Wed, 07 Aug 2019 19:24:43 +0000 (UTC)
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB4441
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/PQl2xguI24XZVOcEPjdz8sWnmMQ>
Subject: Re: [media-types] Media-type registrations for senml-etch+json and senml-etch+cbor
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Aug 2019 19:24:46 -0000

Thank you Alexey!

Regarding encoding, we re-used the text from the SenML RFC (https://tools.ietf.org/html/rfc8428#section-12.3.1). But simply changing this to "binary" as in RFC8259 works well for me too. I made a small PR for this:
https://github.com/core-wg/senml-etch/pull/7/files

Regarding the fragment ID considerations, do you mean we should copy the text for +cbor and +json from here:
https://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml

As in:
> The syntax and semantics of fragment identifiers specified for senml-etch+json SHOULD be as specified for "application/json". (At publication of this document, there is no fragment identification syntax defined for "application/json".)

and:
> The syntax and semantics of fragment identifiers specified for senml-etch+cbor SHOULD be as specified for "application/cbor". (At publication of this document, there is no fragment identification syntax defined for "application/cbor".)


Cheers,
Ari

On 07/08/2019, 21.52, "Alexey Melnikov" <alexey.melnikov@isode.com> wrote:

    Hi Carsten/editors,
    
    I've made a couple of comments on this document verbally, but I never 
    put them in email. My comments below:
    
    On 12/07/2019 12:12, Carsten Bormann wrote:
    
    > »The Sensor Measurement Lists (SenML) media type and data model can
    > be used to send collections of resources, such as batches of sensor
    > data or configuration parameters.  The existing media types
    > (defined in RFC 8428) are useful for the traditional operations
    > GET, PUT, POST.  The CoAP iPATCH, PATCH, and FETCH methods enable
    > accessing and updating parts of a resource or multiple resources
    > with one request.  For using these methods to access and operate on
    > resources represented with the SenML data model, the present
    > document defines variants of the SenML media types, for JSON and
    > CBOR representations only.«
    >
    > Please review the media-type registrations as proposed in
    > draft-ietf-core-senml-etch-04, copied below (RFC-AAAA is the
    > RFC-to-be from that).
    >
    > Grüße, Carsten
    >
    >
    >
    >
    >
    > 5.2.  senml-etch+json Media Type
    >
    >     Type name: application
    >
    >     Subtype name: senml-etch+json
    >
    >     Required parameters: none
    >
    >     Optional parameters: none
    >
    >     Encoding considerations: Must be encoded as using a subset of the
    >     encoding allowed in [RFC8259].  This simplifies implementation of a
    >     very simple system and does not impose any significant limitations as
    >     all this data is meant for machine to machine communications and is
    >     not meant to be human readable.
    While this test is useful, it is not what this field is all about. You 
    need to pick one of 7bit, 8bit, binary or framed. See 
    <https://tools.ietf.org/html/rfc6838#section-4.8>
    >
    >     Security considerations: See Section 4 of RFC-AAAA.
    >
    >
    >
    >
    >
    > Keranen & Mohajer        Expires January 9, 2020                [Page 6]
    > Internet-Draft          FETCH & PATCH with SenML               July 2019
    >
    >
    >     Interoperability considerations: Applications MUST ignore any key
    >     value pairs that they do not understand unless the key ends with the
    >     '_' character in which case an error MUST be generated.  This allows
    >     backwards compatible extensions to this specification.
    >
    >     Published specification: RFC-AAAA
    >
    >     Applications that use this media type: Applications that use the
    >     SenML media type for resource representation.
    >
    >     Fragment identifier considerations: N/A
    As this registration is using +json suffix, it should use text about 
    Fragment identifiers as described in +json suffix registration. (You can 
    find it on IANA's website)
    >     Additional information:
    >
    >     Magic number(s): none
    >
    >     File extension(s): senml-etchj
    >
    >     Windows Clipboard Name: "SenML FETCH/PATCH format"
    >
    >     Macintosh file type code(s): none
    >
    >     Macintosh Universal Type Identifier code: org.ietf.senml-etch-json
    >     conforms to public.text
    >
    >     Person & email address to contact for further information: Ari
    >     Keranen ari.keranen@ericsson.com
    >
    >     Intended usage: COMMON
    >
    >     Restrictions on usage: None
    >
    >     Author: Ari Keranen ari.keranen@ericsson.com
    >
    >     Change controller: IESG
    >
    > 5.3.  senml-etch+cbor Media Type
    >
    >     Type name: application
    >
    >     Subtype name: senml-etch+cbor
    >
    >     Required parameters: none
    >
    >     Optional parameters: none
    >
    >     Encoding considerations: Must be encoded as using [RFC7049].
    As above.
    >
    >
    >
    >
    > Keranen & Mohajer        Expires January 9, 2020                [Page 7]
    > Internet-Draft          FETCH & PATCH with SenML               July 2019
    >
    >
    >     Security considerations: See Section 4 of RFC-AAAA.
    >
    >     Interoperability considerations: Applications MUST ignore any key
    >     value pairs that they do not understand unless the key ends with the
    >     '_' character in which case an error MUST be generated.  This allows
    >     backwards compatible extensions to this specification.
    >
    >     Published specification: RFC-AAAA
    >
    >     Applications that use this media type: Applications that use the
    >     SenML media type for resource representation.
    >
    >     Fragment identifier considerations: N/A
    As above (Similar for +cbor suffix).
    >
    >     Additional information:
    >
    >     Magic number(s): none
    >
    >     File extension(s): senml-etchc
    >
    >     Macintosh file type code(s): none
    >
    >     Macintosh Universal Type Identifier code: org.ietf.senml-etch-cbor
    >     conforms to public.data
    >
    >     Person & email address to contact for further information: Ari
    >     Keranen ari.keranen@ericsson.com
    >
    >     Intended usage: COMMON
    >
    >     Restrictions on usage: None
    >
    >     Author: Ari Keranen ari.keranen@ericsson.com
    >
    >     Change controller: IESG
    >
    > _______________________________________________
    > media-types mailing list
    > media-types@ietf.org
    > https://www.ietf.org/mailman/listinfo/media-types