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

Henning Rogge <hrogge@gmail.com> Fri, 08 May 2020 05:19 UTC

Return-Path: <hrogge@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 9E20C3A0366 for <netconf@ietfa.amsl.com>; Thu, 7 May 2020 22:19:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, 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 aAXNCPbuQC8U for <netconf@ietfa.amsl.com>; Thu, 7 May 2020 22:19:20 -0700 (PDT)
Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) (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 DB5CF3A0365 for <netconf@ietf.org>; Thu, 7 May 2020 22:19:19 -0700 (PDT)
Received: by mail-lj1-x243.google.com with SMTP id w20so345258ljj.0 for <netconf@ietf.org>; Thu, 07 May 2020 22:19:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pTV1MNu3829IQDPpj2mhaAvHXQ4az/pf5d78QCDzrdc=; b=QezQ4SkgwA7eRUXKSCd9BL3tU43gRZEqfEbgQsxZ/CW9TUHOddEK31+V0GwTvYv1t8 C6yw12rVgQzshzo28NuPE9gNT0h1fTVdK1yz4UmuEE/ObMkvJqKK7sNzxxGF5hmhjl6Q mrPIVfO0L3KvfynDHOW2sUs7eUPj/9Ya5J4ZnDOGRQZitCEkkQMSgB5XqmKYQNvipzAS rYiKj8QsuDb903oKBrpuU06UN+piL+FSpyv2aFtpFa3TJB1hzknumeOfe5wnrBUfswnI 2PXJh3O4tHFhHlxE61AoJMeZzOCBSpm9evC3HyPYVUYGEYMgSoxjMbpRxup/Z3bGFqCG RInA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pTV1MNu3829IQDPpj2mhaAvHXQ4az/pf5d78QCDzrdc=; b=nvFQsiLQt0hPZo2v5l/piC8rYU3jSLAc51dQYL2GBfwR4q398oI3JLMBlnoDEIHfTd l5nEqlJ5b2Jwxh6VTiA8bxpHQ7s0LhxDWCxUPC/X5yt888YUbPiVhT9smrhd7Xy7o8sW ZD4BEPhOE5o/r7yxCpPVjPOiPj8eqKJZ3JCoklmkrXKqhkL4YSJkzGTPkmqxys+wzN7L LcWA1NOICaIy7R68WbYDHlwhFTnBvu2dt2trBALXrRGRTHdYRQJ8D9VfIDtwBZfKb4Ba 1Q+a+d408IUctCQ2l+/gamuIhFP85hK0yDXArtJWDTqOvFMA9pR7R6VdBpIW7xv3ctIA zdJQ==
X-Gm-Message-State: AOAM530G2yP0Ho6zas59PrxT4owJCLvfKHH+jgSovSwJn7x/kdEb7Hzx GZuldv0Pm+L7gyb8TyJCu1KbIaerdy74dP8lQGk=
X-Google-Smtp-Source: ABdhPJyknZSQpMWM0tkIX+Deblf8Joz+RYqeoYCYIRa+wjnM2S0RuMNNtIXBnGCRKR+sABghe+uRAxIrwZSK5sJBb8I=
X-Received: by 2002:a2e:8693:: with SMTP id l19mr446887lji.63.1588915158109; Thu, 07 May 2020 22:19:18 -0700 (PDT)
MIME-Version: 1.0
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>
In-Reply-To: <9C6D0A8A-2BD4-4578-8CB3-6969078CE10A@gmail.com>
From: Henning Rogge <hrogge@gmail.com>
Date: Fri, 08 May 2020 07:18:52 +0200
Message-ID: <CAGnRvupBeUnmpTLmeNR7y3Ycb22Jkngo=kfssNFfxHndxxEfPQ@mail.gmail.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Cc: Martin Björklund <mbj+ietf@4668.se>, netconf@ietf.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/TYBpTE_ELzzMOe6amrw6fQF07nE>
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 05:19:22 -0000

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"

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.

Henning Rogge