Re: [Cbor] Chair review of cbor-file-magic 08

Michael Richardson <mcr+ietf@sandelman.ca> Mon, 07 March 2022 21:08 UTC

Return-Path: <mcr+ietf@sandelman.ca>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 046E63A0B3F; Mon, 7 Mar 2022 13:08:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sandelman.ca
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 O4KdxoPZLBvA; Mon, 7 Mar 2022 13:08:48 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 53ACF3A0B21; Mon, 7 Mar 2022 13:08:47 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by tuna.sandelman.ca (Postfix) with ESMTP id 25C5E38AF1; Mon, 7 Mar 2022 16:18:05 -0500 (EST)
Received: from tuna.sandelman.ca ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gbMS8MoQCfHH; Mon, 7 Mar 2022 16:18:03 -0500 (EST)
Received: from sandelman.ca (obiwan.sandelman.ca [209.87.249.21]) by tuna.sandelman.ca (Postfix) with ESMTP id B246B38AE9; Mon, 7 Mar 2022 16:18:03 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sandelman.ca; s=mail; t=1646687883; bh=OaMBsNiFEiXbb8JNKAjAX6k1O7HucCoEb3qLz7hBJRo=; h=From:To:cc:Subject:In-Reply-To:References:Date:From; b=UBlBiv7dZ2QDknrdU0XjZFzgpWJ6rBkJ4alpTztDXaxjDg7rnK+ShJwbNjvF0aHnx NyqmEUGwXyo/UTOsQUWi9vxeJ+cI1wyVZ7agGQ2M3Tc9/ebuI5EkLKXMHh0FXCu4VK eJf5xS5lkkgmHiwvyXHWn1pG/SavnQMKb/lWpRY6oTf6+raR4a2198Gg6twWRqQ93i lp1bIn85WPw8OKGYGPP1obN+Qy0FonQaCdtDEJAVRGjDk8Eq+5CryNcCWx2Y8QE2bN lPqgiZMYkZ9uAoYDHLMynpULwbB+RVjkRyXcn9JgMvaxV9X8vpDn3Y3xGZ8wkVnwQP mz7jjUuX8DRxA==
Received: from localhost (localhost [IPv6:::1]) by sandelman.ca (Postfix) with ESMTP id 9378E6B9; Mon, 7 Mar 2022 16:08:43 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Christian =?us-ascii?Q?=3D=3Fiso-8859-1=3FQ=3FAms=3DFCss=3F=3D?= <christian@amsuess.com>
cc: Carsten Bormann <cabo@tzi.org>, cbor@ietf.org, draft-ietf-cbor-file-magic@ietf.org
In-Reply-To: <YiXuySHqGatarVQa@hephaistos.amsuess.com>
References: <164442074235.12313.4216473952031101282@ietfa.amsl.com> <YgPhxUmjDUqLTEtK@hephaistos.amsuess.com> <YhTi7sT7O7xzjLQz@hephaistos.amsuess.com> <0425DF6E-EB50-4711-89A6-DFD14FE3FD8A@tzi.org> <YiXuySHqGatarVQa@hephaistos.amsuess.com>
X-Mailer: MH-E 8.6+git; nmh 1.7+dev; GNU Emacs 26.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature"
Date: Mon, 07 Mar 2022 16:08:43 -0500
Message-ID: <8355.1646687323@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/SsmbDW4mfrK--oMgsmAjV06UtvE>
Subject: Re: [Cbor] Chair review of cbor-file-magic 08
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Mar 2022 21:08:55 -0000


Christian Amsüss <christian@amsuess.com> wrote:
    > Two things were left but minor enough to be addressed in the next phase:

    > * In Section 5.3 (IANA / CBOR Tags for CoAP Content-Format Numbers), it
    > still says "Date item: byte string"

In the other two IANA cases it says "tagged byte string"
In the CF case, the *tag* we agreed applies to the byte string 'BOR'

In the case of 55800 (5.1) and 55801 (5.2), the newly allocated tags apply to
a tagged byte stream.  I.e.:
  #6.55800<#6.12345678<BOR>>

while for the CF tags, it's not the outer piece that we are allocating,
but the inner part (12345678).  So it's correct: it tags 'BOR', not #6.foo<BOR>

    > * The introduction of Appendix A ("CBOR Tags for CoAP Content Formats")
    > says:

    >> Often, there is a need to identify a media type (or content type,
    >> i.e., media type optionally used with parameters) that applies to
    >> the contents of a byte string in a CBOR data item.

    > Of all the things we describe how these 64k tags could be used,
    > annotating a byte string is none of them -- and I think the sentence
    > just needs an editorial nudge.

How about this:

diff --git a/cbor-file-magic.mkd b/cbor-file-magic.mkd
index 3db8f84..7939740 100644
--- a/cbor-file-magic.mkd
+++ b/cbor-file-magic.mkd
@@ -401,16 +401,13 @@ Reference:

 # CBOR Tags for CoAP Content Formats {#ct-tags}

-Often, there is a need to identify a media type (or content type,
-i.e., media type optionally used with parameters) that applies to the
-contents of a
-byte string in a CBOR data item.
-
 {{Section 5.10.3 of -coap}} defines the concept of a Content-Format,
 which is a short 16-bit unsigned integer that identifies a specific
 content type (media type plus optionally parameters), optionally
 together with a content encoding.

+Outside of a CoAP transfer it may be necessary to identify the contents of the CoAP payload when it is on disk, in firmware, or when debugging.
+

 This specification allocates CBOR tag numbers 1668546560 (0x63740000) to
 1668612095 (0x6374FFFF) for the tagging of representations of specific
 content formats.


--
Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
           Sandelman Software Works Inc, Ottawa and Worldwide