Re: [Cbor] Conflicting tags

Carsten Bormann <cabo@tzi.org> Thu, 07 May 2020 18:55 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 EA2AE3A0893 for <cbor@ietfa.amsl.com>; Thu, 7 May 2020 11:55:36 -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 95fwGD2LPwOh for <cbor@ietfa.amsl.com>; Thu, 7 May 2020 11:55:31 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6CF33A088E for <cbor@ietf.org>; Thu, 7 May 2020 11:55:30 -0700 (PDT)
Received: from [172.16.42.112] (p548DCD70.dip0.t-ipconnect.de [84.141.205.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 49J2hw3hZWzyqh; Thu, 7 May 2020 20:55:28 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <D4B99E1D-14E5-4EBC-AB3F-A4404FA60DCF@island-resort.com>
Date: Thu, 07 May 2020 20:55:28 +0200
Cc: cbor@ietf.org
X-Mao-Original-Outgoing-Id: 610570528.054782-147b26a001fd2cd2e36b61485f7bbf22
Content-Transfer-Encoding: quoted-printable
Message-Id: <B2BB78F0-A0A2-489B-8F1E-61E1D7AFA9B2@tzi.org>
References: <D4B99E1D-14E5-4EBC-AB3F-A4404FA60DCF@island-resort.com>
To: Laurence Lundblade <lgl@island-resort.com>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/Nha_e0D5zfvA3foZrfKUBOiUNZ0>
Subject: Re: [Cbor] Conflicting tags
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: Thu, 07 May 2020 18:55:37 -0000

On 2020-05-07, at 20:46, Laurence Lundblade <lgl@island-resort.com> wrote:
> 
> I am after comments and wisdom on what to do when encountering a data item with conflicting tags, say one that is tagged both a positive and negative bignum (both byte strings), or one that is tagged as both a CWT and a decimal fraction (both arrays).

Cannot happen, I’d say.
The outer tag is tagging the inner tag.
But Tag 2 and Tag 3 are both defined only for byte strings, so the outer tag has a wrong type as its value.

Grüße, Carsten