[Cbor] Re: cbor.me issue with indefinite form round-trips

Carsten Bormann <cabo@tzi.org> Tue, 13 August 2024 19:29 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 225ACC1840EA for <cbor@ietfa.amsl.com>; Tue, 13 Aug 2024 12:29:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.207
X-Spam-Level:
X-Spam-Status: No, score=-4.207 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W5HEzs2KOZAf for <cbor@ietfa.amsl.com>; Tue, 13 Aug 2024 12:29:22 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1CE9EC15154E for <cbor@ietf.org>; Tue, 13 Aug 2024 12:29:20 -0700 (PDT)
Received: from smtpclient.apple (p5dc5d809.dip0.t-ipconnect.de [93.197.216.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Wk1fP64hKzDCbG; Tue, 13 Aug 2024 21:29:17 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <70de4556b1fa40a28eb01779cf96dd54@jhuapl.edu>
Date: Tue, 13 Aug 2024 21:29:06 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <A3A31C65-3E36-45C1-9880-E7BC8C77F81F@tzi.org>
References: <70de4556b1fa40a28eb01779cf96dd54@jhuapl.edu>
To: "Sipos, Brian J." <Brian.Sipos@jhuapl.edu>
X-Mailer: Apple Mail (2.3776.700.51)
Message-ID-Hash: OKVH2P6SUA4HVPUBUHXBDCH2IUO5MN5X
X-Message-ID-Hash: OKVH2P6SUA4HVPUBUHXBDCH2IUO5MN5X
X-MailFrom: cabo@tzi.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cbor.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "cbor@ietf.org" <cbor@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Cbor] Re: cbor.me issue with indefinite form round-trips
List-Id: "Concise Binary Object Representation (CBOR)" <cbor.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/JSvB6e5x594-v7Mc8I1crOe6VfE>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Owner: <mailto:cbor-owner@ietf.org>
List-Post: <mailto:cbor@ietf.org>
List-Subscribe: <mailto:cbor-join@ietf.org>
List-Unsubscribe: <mailto:cbor-leave@ietf.org>

On 13. Aug 2024, at 20:39, Sipos, Brian J. <Brian.Sipos@jhuapl.edu> wrote:
> 
> these inputs will encode properly but then going back to decoding will remove the indefinite-length indicating underscore:
> [_1,2]
> {_1:2} 

That was too easy and is therefore fixed now on cbor.me (`gem update cbor-diag` to 0.9.4 if you are using the tools locally).

Grüße, Carsten