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

Martin Björklund <mbj+ietf@4668.se> Tue, 14 April 2020 20:22 UTC

Return-Path: <mbj+ietf@4668.se>
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 4CD9F3A0EAD for <netconf@ietfa.amsl.com>; Tue, 14 Apr 2020 13:22:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level:
X-Spam-Status: No, score=-0.101 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, PDS_NAKED_TO_NUMERO=1.999, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=roHqE8GC; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=P/MeGdrs
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 pWQWcCZItZR0 for <netconf@ietfa.amsl.com>; Tue, 14 Apr 2020 13:22:42 -0700 (PDT)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 11BC03A0EAC for <netconf@ietf.org>; Tue, 14 Apr 2020 13:22:39 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2B4FE75C; Tue, 14 Apr 2020 16:22:39 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 14 Apr 2020 16:22:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= KxqpblD66pTW8Em9ygMzAePepBXeJE4HRQRErGU0veI=; b=roHqE8GCP6Wnl8fc 0r/yJDIWftjYStViOrTEgsWGXG47QRF6yzM/A7eSjsTQidju7F/S4bUt5YhzfoDI W0vX8wT3eIZgcRHpRCjOYdenHAey52sZgkMZk7iGd29FG6GMgrgF//xeWL8Pjj1s nnsqdrNDo//jyulVtSiG6gsdrYxt/LD6RaTgprhGlFCArPwYr2evkHQaB+FHGej+ eIaSSU65SeRs7Sz5yb/0DLlPh5YEDP8IJV0XO/MPO8BQrcMuHou5RoVpioLQFDQH j9LMC4yteoJ4zQG/G5ABK1Y9eU5XeP4QmBf8JKeyBMKCrRyVqBcnPS0kkZWF7jie 82GIaw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=KxqpblD66pTW8Em9ygMzAePepBXeJE4HRQRErGU0v eI=; b=P/MeGdrsFRBlHs3l7cuP6ZTpx8H2sgRTUnT3I1NhCBcCVbGR33wC7X19N vfwx6D1jILMmve/D1Vee88ZierUICUmAUCbh2ibLxkLBAAhcYZYMAYtlwPf4+pNU FIw92VtgM7wEuYL8Cs/B5m/nu69fEDEhJsuuBU4zph0fLyGyAF0qEd4LnGhdHA9r CfM0lv8lpBx9gaJqlmEy0NiWFeaS4Fzo8l/KEqixFysryx5q7fOL7giZQ31crXOp TaNrmzMoI6QoLMnTy7spoIdV+c3lS0iOXpmQ3o1F4tB1siqndiEk6sfwkrumJgWj rlP49yTfrh3WmAEooEiml9ZOynPUg==
X-ME-Sender: <xms:jhuWXqaga5mwfvyLmDsTpNNd662dAlL_wDTYaISE69YzNbLRGbK-Wg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfedugddugeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtje ertdertddvnecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi vghtfhesgeeiieekrdhsvgeqnecuffhomhgrihhnpehivghtfhdrohhrghenucfkphepud ehkedrudejgedrgedrgeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepmhgsjhdoihgvthhfseegieeikedrshgv
X-ME-Proxy: <xmx:jhuWXvsuKq9W73oeMYRB-Jubxd1RhsAzNq0BF0xIwTx4IwUM5PCPQA> <xmx:jhuWXjrgYpEK2SfZWA7C7IHyVgU5k60enWCZEIN1vhBHKr4UHHjMlQ> <xmx:jhuWXpmqMjejKLoz_yQRM56JmCrXVDWWFHA2lYUkObHlSx5pzLJ7TA> <xmx:jhuWXvBkJmUpBXdS0xuhJR_X4G43exn1DohseBLfvWTJf-4XLqjoRg>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 0D411328005A; Tue, 14 Apr 2020 16:22:37 -0400 (EDT)
Date: Tue, 14 Apr 2020 22:22:36 +0200
Message-Id: <20200414.222236.518728457229433184.id@4668.se>
To: hrogge@gmail.com
Cc: netconf@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <CAGnRvuq=ESLkeyWsgiqE9sXqFwHGUef3A4QRuW=H8ompVO3C4Q@mail.gmail.com>
References: <CAGnRvup-pLVYgxAx7PnbJJ1gS-GTkD6t5jGD_Ayhh7ctpPothw@mail.gmail.com> <CAGnRvuq=ESLkeyWsgiqE9sXqFwHGUef3A4QRuW=H8ompVO3C4Q@mail.gmail.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/j7a-0KbpdbV9vpId5CygcBt9Pkk>
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: Tue, 14 Apr 2020 20:22:43 -0000

Hi,

Sorry for missing this.

Henning Rogge <hrogge@gmail.com> wrote:
> Anyone (Maybe the timing of the question just before the IETF was not
> that good ^^) ?
> 
> Henning Rogge?
> 
> On Thu, Apr 2, 2020 at 2:18 PM Henning Rogge <hrogge@gmail.com> wrote:
> >
> > Hi,
> >
> > I am trying to implement a Restconf (RFC8040) compliant server in
> > Python and having trouble interpreting the definition of the "fields"
> > query parameter (Section 4.8.3).
> >
> > Does the "fields-expr" ABNF allow multiple nested bracket parts?
> > e.g.:
> >
> > fields-expr = path ( path ; ( path ; path; ( path ; path ) ) )
> >
> > My guess is it allows to nest the "sub-selector" operator, but only
> > the rightmost of a series of multiple selected nodes ( split by ";" )
> > can be another sub-selector.
> >
> > Is this interpretation correct? What is the supposed semantic for this
> > kind of query parameter?

For example:

   "fields=album(genre;(admin/label;admin/catalogue-number))"

would select:

   album/genre
   album/admin/label
   album/admin/catalogue-number
   
as would:

   "fields=album(genre;(admin(label;catalogue-number)))"



/martin

> >
> > Henning Rogge
> 
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf