Re: [netconf] Trouble with RFC 8040 (Restconf) fields Query Parameter

Mahesh Jethanandani <mjethanandani@gmail.com> Fri, 08 May 2020 18:07 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 902203A0F97 for <netconf@ietfa.amsl.com>; Fri, 8 May 2020 11:07:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 98Vt1WeUzjvF for <netconf@ietfa.amsl.com>; Fri, 8 May 2020 11:07:46 -0700 (PDT)
Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B0AEB3A0F94 for <netconf@ietf.org>; Fri, 8 May 2020 11:07:46 -0700 (PDT)
Received: by mail-pg1-x534.google.com with SMTP id j21so1214255pgb.7 for <netconf@ietf.org>; Fri, 08 May 2020 11:07:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=t7JK2qG2o93FK5pF19712jLtcDDVENO5YbpCS7J91eo=; b=SlaBCXYyXIstR9KDgPQPo1LyryDYFngpKvXQPtkwvuFodoSVnBwhuuhV5u/jY8bp02 LjSiZofH17xhsJKztyMEjzvaIjknJ6PJJyvQEnJXiEAaX4o2qXHpfUn6K2KcQ8DrwXro Kqo1sRcNxJUx3kPIksS+Zu0xIxnJ7PbjaETLpePXjKbNrBnZaSyX3NGmhm2mGD4xRneR jGX1/J9PovL28j6flvjb2GrLpd0iQq6IpTL1/O7rOiABv1kYZj9oXbobcRkkuwnJkIC0 VgK/52CdpzNldtsvB+HVYi804bvj4fe1Cn3laaD7Czmzvv61rSHK6t2lv/6c8rDsAUPo AO6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=t7JK2qG2o93FK5pF19712jLtcDDVENO5YbpCS7J91eo=; b=anvLV0iMZFP21WJ4n40Z00WCsPCA6oPJa9bpvq0acvH5nrrOc/zjg70pyBfmKSFh96 gIysQjUEXpPyWnYeFPcc4BG6EhX9Fk943olbCdzIqlEgBuyI+eaPJrDPMxmFwTjyTNVU gH0eGmJhP9jFR4UhpRJsMFkPH66NgVPld9qrJFDrnpKMeY8IqpqF/Qfx9A3Ta82gn+xL 3ANuLEpTYYSqyKM8E1D7hMTlHleCKhvCVQVvaEKLCF1algGtibCwJY9/G6cKaIcKuECy kmgj4OTZHaJtKWRTjeRQFsU/xc9WVz//k/JuJU8iWPhhE2hxVReUITl8/jXc/o1hb3vX xqlg==
X-Gm-Message-State: AGi0PubrTA8yEzPPg0p3CgwTzrWAO9nmaSOM7LaOS6Tk+vETChdMWJBU DD7oPbkPCsKmCr79vgd3Z/kbWcSBZw0dWQ==
X-Google-Smtp-Source: APiQypLCqS8fIQg5bAtYrWsvTCwq4VuS4MdXm94h/8Jw6h2ESV3/rkUTtr7xfkDNyjJYKjVucQm4Sg==
X-Received: by 2002:a65:6208:: with SMTP id d8mr3085435pgv.225.1588961265996; Fri, 08 May 2020 11:07:45 -0700 (PDT)
Received: from [192.168.1.175] (c-73-93-49-153.hsd1.ca.comcast.net. [73.93.49.153]) by smtp.gmail.com with ESMTPSA id w125sm1805350pgw.22.2020.05.08.11.07.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2020 11:07:44 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <20BA9136-0FC6-4CAC-BF59-89FC16DB583E@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_AC5CB6D1-048A-49D9-B62D-7315550DBAA5"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.5\))
Date: Fri, 08 May 2020 11:07:35 -0700
In-Reply-To: <CAGnRvupBeUnmpTLmeNR7y3Ycb22Jkngo=kfssNFfxHndxxEfPQ@mail.gmail.com>
Cc: Martin Björklund <mbj+ietf@4668.se>, netconf@ietf.org
To: Henning Rogge <hrogge@gmail.com>
References: <CAGnRvup-pLVYgxAx7PnbJJ1gS-GTkD6t5jGD_Ayhh7ctpPothw@mail.gmail.com> <CAGnRvuq=ESLkeyWsgiqE9sXqFwHGUef3A4QRuW=H8ompVO3C4Q@mail.gmail.com> <20200414.222236.518728457229433184.id@4668.se> <CAGnRvurVJBHbRbwtnLXQFeSrDUFSGKWhL1UUjUDjw5-Gc44ozg@mail.gmail.com> <9C6D0A8A-2BD4-4578-8CB3-6969078CE10A@gmail.com> <CAGnRvupBeUnmpTLmeNR7y3Ycb22Jkngo=kfssNFfxHndxxEfPQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.9.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/XvU7HjxmJAmJx0eAWupdxzcnrvM>
Subject: Re: [netconf] Trouble with RFC 8040 (Restconf) fields Query Parameter
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 May 2020 18:07:49 -0000

Hi Henning,

> On May 7, 2020, at 10:18 PM, Henning Rogge <hrogge@gmail.com> wrote:
> 
> On Thu, May 7, 2020 at 10:33 PM Mahesh Jethanandani
> <mjethanandani@gmail.com> wrote:
>> 
>> Hi Henning,
>> While not IETF blessed, ODL ran into multiple issues with the fields query parameter, and documented in this Jira report. Documented in there are some of the test cases that might interest you to run. There were other test cases run in this and this report also that should be of interest.
> 
> Thank you very much for these links...
> 
> hmm, when reading through them I noticed something... is
> fields=uuid;actual-equipment(manufactured-thing(equipment-type);structure)
> even valid?
> 
> According to the RFC8040 4.8.3. the bracket part of the expression can
> only nest in the last of the fields...
> 
> 'path ; fields-expr', but not 'fields-expr ; path”

I will let one of the authors comment on what the intent was.

> 
> What do you think ? I guess this was don to prevent a whole tree of
> field subexpressions... the ABNF does only seem to support a "line" of
> them.

The implementation in ODL does not care what order the query is placed in. Even if the bracket part of the query is placed in the last field, when it builds up the hash index for the search, the bracketed parts can appear anywhere based on how it gets hashed.

Cheers.

> 
> Henning Rogge

Mahesh Jethanandani
mjethanandani@gmail.com