Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic-06.txt
Christian Amsüss <christian@amsuess.com> Wed, 03 November 2021 14:09 UTC
Return-Path: <christian@amsuess.com>
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 126433A14ED; Wed, 3 Nov 2021 07:09:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 bLN2M6Fy0BJB; Wed, 3 Nov 2021 07:09:47 -0700 (PDT)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [5.9.147.112]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF4363A14EB; Wed, 3 Nov 2021 07:09:45 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id C2C5C40428; Wed, 3 Nov 2021 15:09:41 +0100 (CET)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 16EC2154; Wed, 3 Nov 2021 15:09:40 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:6ef7:e30f:8b14:6191]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id BB02610A; Wed, 3 Nov 2021 15:09:39 +0100 (CET)
Received: (nullmailer pid 261469 invoked by uid 1000); Wed, 03 Nov 2021 14:09:39 -0000
Date: Wed, 03 Nov 2021 15:09:39 +0100
From: Christian Amsüss <christian@amsuess.com>
To: draft-ietf-cbor-file-magic@ietf.org, cbor@ietf.org
Message-ID: <YYKYIzFFIGWVqNK8@hephaistos.amsuess.com>
References: <163484662604.2786.6905890868276647458@ietfa.amsl.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="1BkZ1gXWMLKz1Wda"
Content-Disposition: inline
In-Reply-To: <163484662604.2786.6905890868276647458@ietfa.amsl.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/n0MitPJJyrPlq7nJokLCgAwt9kE>
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic-06.txt
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: Wed, 03 Nov 2021 14:09:53 -0000
Hello Carsten, hello Michael, > A diff from the previous version is available at: > https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-file-magic-06 The example has now become inconsistent, mixing the CBOR Tag Wrapped and CBOR Tags for Content Formats parts: > to translate the Content-Format number registered for > application/senml+cbor, the number 112, into the tag 1668546560+112 = > 1668546672. > > 55799(1668546672([{0: "current", 6: 3, 2: 1.5}])) puts CBOR data into the content-format generated item, whereas Appendix A says: > The tag content tagged with tag number [...] is a byte string that is > to be interpreted as a representation of the content format > NNNNNNNN-1668546560. which would look like 55799(1668546672(h'a30067...')). My understanding so far was that with the current appendix, all data would be bstr-valued, and if a) the content format is CBOR based, and b) the transport coding is "identity", and c) the representation is actually well-formed in the advertised content format, only then will the byte string (happen to) be valid CBOR, but still encoded in a byte string. I kind of like having pre-allocated tags for the CBOR protocols implied by a content format (where applicable) for reasons of closure, that it works this way and how it works (can't share the same 16bit tag range without creating ambiguity, can it?) needs to be spelled out -- right now, this is internally contradictory. Could you clarify what your intentions are here, or whether I missed a discussion due to which this is being changed? BR Christian -- There's always a bigger fish. -- Qui-Gon Jinn
- [Cbor] I-D Action: draft-ietf-cbor-file-magic-06.… internet-drafts
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Christian Amsüss
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Michael Richardson
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Michael Richardson
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Carsten Bormann
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Michael Richardson
- Re: [Cbor] I-D Action: draft-ietf-cbor-file-magic… Carsten Bormann