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

Ari Keränen <ari.keranen@ericsson.com> Sat, 17 August 2019 08:22 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 DD53E120116 for <media-types@ietfa.amsl.com>; Sat, 17 Aug 2019 01:22:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.635
X-Spam-Level:
X-Spam-Status: No, score=-3.635 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, RCVD_IN_DNSWL_MED=-2.3, SPF_SOFTFAIL=0.665] autolearn=unavailable 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 UsJ8IaUGmMEt for <media-types@ietfa.amsl.com>; Sat, 17 Aug 2019 01:22:25 -0700 (PDT)
Received: from pechora1.lax.icann.org (pechora1.icann.org [IPv6:2620:0:2d0:201::1:71]) (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 895D2120108 for <media-types@ietf.org>; Sat, 17 Aug 2019 01:22:25 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150042.outbound.protection.outlook.com [40.107.15.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by pechora1.lax.icann.org (Postfix) with ESMTPS id DB8901E04F0 for <media-types@iana.org>; Sat, 17 Aug 2019 08:22:24 +0000 (UTC)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a/uIrMHPtpugyNQUXPyO+jURjs5m11J/y+9j+f8vdndRqsaCn3XmRXBY3ViAy0wqlOFy8lzPWpFG093Jjq+f3gcPp3gDtpEgvF21++iZUAkMj2HV+ash7eYu6APNBpvA216GXOOyNZIi8fYKZd6hrlWA/4SZD39ayEPYAG3tt1tfr3G3gkO1HQiPnNBqjRTj6lsZMVCvX5ubx4qiLpR2G+ZJCDBocBOulIyJWRdUV/ztAT78Tk4AZr3qt5vR+BKcf/B7U+hGAmcP0CtIbuQ+nXoopHifth7eWw9DG9tfndqQmhjPfAD8FTMuJbX8sYehqiTZt3nw7Ps/XZtq6l/bQQ==
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=SuuhsSwCzJ7LfXWcV8tS2qxVnRAgm4OMRDMvwqWmICk=; b=oUsbXF5Bq695khM+Jm0c/juqPmGO2JiI208OCyffjlsE9Vtyt2F5y+Oo2t+ZjHOkznbBLdwQ1QvtdqwZ/M94092HawW+sqH/09KVA785sFwlb/fxodk8MHahY8tSWoaSi6OZpBc3pcgEkGmauiS7G4nYgaI8dXGryYqelq421Mu1M6Z5EDmr19ygPpzHJdskjIBKJ6s6ZyhuMjA60qyDE4Lno4gzeg29ZLWkl9zlk6Oi/54ythP+R0QNVuV1GcTysyqnBUh0S4ZR8FUkoft4xardnB+cRNd+Ps59hilAi9vk+QWMzwEtctS1WVLq5QrRx9WKWfHm2f7XoMDeUqEPcQ==
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=SuuhsSwCzJ7LfXWcV8tS2qxVnRAgm4OMRDMvwqWmICk=; b=PAhFh03TbpqdjVgefLTsgaMyECBLnNZjUtR8Erm40O6iahl4q4kAMQXxVbFlwRv7jhTaIy09n4N+hcz1S7a6rCkaOkwrmf3/v/PyeSmAliFpLuHVOpN7Js5HmUSxwdvF7wl0hmZv1isfCUofC0hk4CRnz1kgRP7+fOZNJBrspxc=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3226.eurprd07.prod.outlook.com (10.170.246.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.15; Sat, 17 Aug 2019 08:22:02 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::ac70:36ee:cd9c:614e]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::ac70:36ee:cd9c:614e%6]) with mapi id 15.20.2178.016; Sat, 17 Aug 2019 08:22:02 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
CC: "draft-ietf-core-senml-etch@ietf.org" <draft-ietf-core-senml-etch@ietf.org>, "media-types@iana.org" <media-types@iana.org>, Carsten Bormann <cabo@tzi.org>
Thread-Topic: [media-types] Media-type registrations for senml-etch+json and senml-etch+cbor
Thread-Index: AQHVTVaBtlIghiAS3kGHuDLZ59bt7qbwSD2AgAsCqQA=
Date: Sat, 17 Aug 2019 08:22:01 +0000
Message-ID: <212920E5-B243-4893-AD49-4CD327DA5740@ericsson.com>
References: <BAC65ED6-6CB3-4DC2-9B9B-F8CCB9D1C910@tzi.org> <6b36aa6f-ddec-7b5e-6760-7a0061ae3c24@isode.com> <46745878-E715-4319-B4E7-110A59FE0091@ericsson.com> <ed2f7894-8fc4-2cab-762d-de0ca52924a2@isode.com> <1B0B82FB-AD02-4694-808A-86C980EF9EF4@ericsson.com>
In-Reply-To: <1B0B82FB-AD02-4694-808A-86C980EF9EF4@ericsson.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1c.0.190812
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-originating-ip: [2001:14bb:150:480b:ac9f:e174:884:7045]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f35b0360-7365-4e32-fdef-08d722ebfb05
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:HE1PR07MB3226;
x-ms-traffictypediagnostic: HE1PR07MB3226:
x-ms-exchange-purlcount: 6
x-microsoft-antispam-prvs: <HE1PR07MB3226FBF8E8CA257FE74CE7DD85AE0@HE1PR07MB3226.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:5516;
x-forefront-prvs: 0132C558ED
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(136003)(39860400002)(346002)(376002)(396003)(366004)(51914003)(189003)(199004)(81156014)(53936002)(53546011)(6436002)(7736002)(6506007)(14454004)(4326008)(6246003)(478600001)(25786009)(76116006)(71190400001)(5660300002)(71200400001)(966005)(33656002)(86362001)(85202003)(81166006)(66476007)(66556008)(66574012)(85182001)(66446008)(256004)(64756008)(76176011)(102836004)(14444005)(486006)(2906002)(36756003)(46003)(66946007)(305945005)(2616005)(11346002)(476003)(58126008)(8936002)(6512007)(6306002)(54906003)(6916009)(8676002)(99286004)(6116002)(229853002)(6486002)(186003)(316002)(446003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3226; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: 2Mi7asWhB4Z1CLJYwNqn1xCMs/Bh5QZZ7KN40j4RsSuHpe6quogpX5OGWiBS2pP9ms4xDMqcH1P6X86tBUHVoN9CputMVOUOeZYJRzkLeZkafk6G7oqzpYr9b9CLOjPlm5ksxzXrmVjCVCwVkKFrhR2xcf72cN3IjvETM1BPw8XiqJq6/YM4tBTi2QfptN03BrvOBwMDCoO21oFl8vBRvuCWiDg4i8GI4wHAL4I0hYhw5tT8AA+O2HmNkXZlXApXCxsvgNEGMqn1uyVITmjVtVoSHqCdw2dn10QZ2nC2Rm7uOE1O2VhQmRV+S5j8PeTVhTXTg4KlC6EUSkEo/54jqv4UECMbPhUAiNmoGeZ8TrztzGripNGKnWQXGac8mKoPJ9nPTs8zx1bakLElbHLvkpHT3qFPSvG1iGNN8N/W0/w=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <02FD1B4A0D1F034D8B81ECCCFEC32457@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f35b0360-7365-4e32-fdef-08d722ebfb05
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2019 08:22:01.8378 (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: vbWN3+TQJKWblAblChDJg6KCTTDlx5xtz5OOECUdrerbutfJlzEYpYgfBd0BoZky8TKoPHFEOeGYR32ayBpnuYd0GJY5Czqbt1PHtZiYoaE=
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.2 (pechora1.lax.icann.org [192.0.33.71]); Sat, 17 Aug 2019 08:22:25 +0000 (UTC)
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3226
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/UxzQFLEzPd5dKoP3-qw879VBBQA>
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: Sat, 17 Aug 2019 08:22:28 -0000

Hi Alexey,

After looking into this in more detail, we realized that it actually makes sense to support the same fragment ID method with the Fetch/Patch Records as with regular SenML records. I created a new PR based on this (also includes the encoding fix from the other PR):
https://github.com/core-wg/senml-etch/pull/8/files

I'll submit a new draft version based on this.


Cheers,
Ari

On 07/08/2019, 22.42, "Ari Keränen" <ari.keranen@ericsson.com> wrote:

    Thanks for the quick reply Alexey! I fixed this now in the same PR: 
    https://github.com/core-wg/senml-etch/pull/7/files
    
    I'll give everyone here a few days to comment and I can submit a new version on Friday if there are no further comments.
    
    
    Cheers,
    Ari
    
    P.S. Apologies for top-posting and not using proper quoting. I have to use a challenged email client at the moment.
    
    On 07/08/2019, 22.30, "Alexey Melnikov" <alexey.melnikov@isode.com> wrote:
    
        Hi Ari,
        
        On 07/08/2019 20:24, Ari Keränen wrote:
        
        > Thank you Alexey!
        >
        > Regarding encoding, we re-used the text from the SenML RFC (https://tools.ietf.org/html/rfc8428#section-12.3.1).
        I missed it earlier :-)!
        >   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
        Yes.
        > 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".)
        
        Yes, something like that.
        
        Best Regards,
        
        Alexey
        
        >
        > 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
        >      
        >