Re: [Cbor] Chair review of cbor-file-magic 08
Carsten Bormann <cabo@tzi.org> Mon, 07 March 2022 21:21 UTC
Return-Path: <cabo@tzi.org>
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 684CD3A1030;
Mon, 7 Mar 2022 13:21:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, 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
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 MShtohmcs0Lg; Mon, 7 Mar 2022 13:21:22 -0800 (PST)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de
[134.102.50.15])
(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id A9A683A103D;
Mon, 7 Mar 2022 13:21:19 -0800 (PST)
Received: from [192.168.217.118] (p5089ad4f.dip0.t-ipconnect.de
[80.137.173.79])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4KCBGP3q0VzDChx;
Mon, 7 Mar 2022 22:21:17 +0100 (CET)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <8355.1646687323@localhost>
Date: Mon, 7 Mar 2022 22:21:17 +0100
Cc: =?utf-8?Q?Christian_Ams=C3=BCss?= <christian@amsuess.com>, cbor@ietf.org,
draft-ietf-cbor-file-magic@ietf.org
X-Mao-Original-Outgoing-Id: 668380877.09227-a59bf1684bbef4430768cefdd8cb451b
Content-Transfer-Encoding: quoted-printable
Message-Id: <6EEAE07A-7CE1-4249-96D6-479BFA5238C7@tzi.org>
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> <8355.1646687323@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/wn41GAHk5VYZYRxE_EhEBBKKoSc>
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:21:34 -0000
On 2022-03-07, at 22:08, Michael Richardson <mcr+ietf@sandelman.ca> wrote: > > > > 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 tags allocated in 5.3 are described in Appendix A. This should make clear that the data item is actually /any/. (Byte string normally and in cases of 55800 and 55801, but /any/ in case of tag 55799.) >> * 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 almost works for me, except that it somehow relates this to CoAP transfer. The Content-Format concept comes from CoAP, but is not limited to CoAP transfer (e.g., RFC 9165). How about: > +Outside of a transfer protocol that indicates the Content-Format for a representation, it may be necessary to identify the Content-Format of the representation when it is on disk, in firmware, or when debugging. > + Or some such. Grüße, Carsten
- [Cbor] 🔔 2nd WGLC on cbor-file-magic-08 Christian Amsüss
- Re: [Cbor] 🔔 2nd WGLC on cbor-file-magic-08 Barry Leiba
- [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Michael Richardson
- Re: [Cbor] Chair review of cbor-file-magic 08 Christian Amsüss
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann
- Re: [Cbor] Chair review of cbor-file-magic 08 Carsten Bormann