Re: [netconf] Question on restconf empty list reply

Martin Björklund <mbj+ietf@4668.se> Tue, 25 February 2020 17:38 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 ECEC83A11DF for <netconf@ietfa.amsl.com>; Tue, 25 Feb 2020 09:38:28 -0800 (PST)
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=xLblj9RZ; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=xccFPttK
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 0rYb0phJhjbF for <netconf@ietfa.amsl.com>; Tue, 25 Feb 2020 09:38:28 -0800 (PST)
Received: from new4-smtp.messagingengine.com (new4-smtp.messagingengine.com [66.111.4.230]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E7F6E3A11DE for <netconf@ietf.org>; Tue, 25 Feb 2020 09:38:27 -0800 (PST)
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id EF44D6730; Tue, 25 Feb 2020 12:38:26 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 25 Feb 2020 12:38:26 -0500
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= wRV34KW1kjoQ/ihYIlmLsldHY6VWAstMNBfKxrnB89M=; b=xLblj9RZABgK0Oac EQBLgCe+XBmOkJkei7DPh/0OMeL/GIimQtLXZEFyDdzktehpSJJD1+6IlteAZV3M G2xo64TEWWH12CzwXxNtkul9WP6zGCmIUi3cXfjW8qpCSv+6GrKmWtJ3BOCn12wx JhPrG6XRc/L6EJiubxG0tGXWMZrj9057pACwFLgpSEdVrSH1dQkrgZeJByt3GyQj +vfwT91jOkDbmtPLxoNbqPqAuuA9wnsm4wJ1jmSFphtJx33d5MwBfJF3Kdzmrjvt LUkGD5x28u/MW4lFRtSQHxMXO7VCy3cZJP6/x+XmJW35FdLgPmJAVZoGki5lKcqO d6yJHw==
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=wRV34KW1kjoQ/ihYIlmLsldHY6VWAstMNBfKxrnB8 9M=; b=xccFPttKyOCCNPgABU6LAUAydC9RdgaVvlBXlJY87B66qxUpxvnBdItnO ZfxZHfsBiOTSwDfQt2nj7phzFR260E8C7EUmszdqfKEnoz4VLmEZX3eneCXOqqwj LWZYUkxICy/8hZjQs2TDfPqiFLxO9ol0Y3jcEbjXgOeAvKkjqGblm9J2Ui2TA9Ja qiBukQ1O73Wo+dZAnXgUSse5Qua5NYXzviRU+CLMxFu1u87QcegXFgWewiynZs6O UAOhkfMVXGAKlgq1u7jNn7kYV/kXLeL7+der7ud85dqbOd1WUmURAmFVbuJ/c0VA 8BVkExFsyVRYlU34CYp9N0+FjmVhQ==
X-ME-Sender: <xms:kltVXl3jbuk40DSyyrym8dCByzizKwDNUA6_eqBrWLiP2dHQ5dgk2Q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrledvgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtsg ertdertdejnecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi vghtfhesgeeiieekrdhsvgeqnecukfhppeduheekrddujeegrdegrdeggeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsghjodhivghtfhes geeiieekrdhsvg
X-ME-Proxy: <xmx:kltVXm5Hm-YOMLupTEoxCfAKBubHNuD3-41VxCtip0nezCBPic3TiQ> <xmx:kltVXrgDNIGN-HSOHB4aM1UnQKxstBcvYZhkwbhMaB6suNFWeeZTjw> <xmx:kltVXnl8xFvWX9dfrlaOMzfc6-cJcs1s87I1K-4mikzHN_vw0x8Fvg> <xmx:kltVXkGiWZ0ApDJA28-QQsvl6f4L_6PxbnFn8_8SUDcuOxhqD533GA>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C7433060FCB; Tue, 25 Feb 2020 12:38:25 -0500 (EST)
Date: Tue, 25 Feb 2020 18:38:23 +0100
Message-Id: <20200225.183823.647044925138390997.id@4668.se>
To: kent+ietf@watsen.net
Cc: olof@hagsand.se, netconf@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <0100017078d1f020-3514ea16-953a-48d7-85f2-ab358f2553c9-000000@email.amazonses.com>
References: <4bca4ca8-0d9f-d986-4521-5c808a6e8a4d@hagsand.se> <20200224.201727.524298611078512416.id@4668.se> <0100017078d1f020-3514ea16-953a-48d7-85f2-ab358f2553c9-000000@email.amazonses.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/EE6oYADYpIll6FgdQ9YWx8Nkhsg>
Subject: Re: [netconf] Question on restconf empty list reply
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, 25 Feb 2020 17:38:29 -0000

Kent Watsen <kent+ietf@watsen.net> wrote:
> > It should be 404, even if the list contains some entries.  The reason
> > for this is that there is no resource for the list itself, only for
> > list entries.  See section 3.5 of RFC 8040.
> 
> Assuming you mean the first paragraph not explicitly listing “list”
> and “leaf-list”, that conflicts with Section 4.3, Paragraph 5.

Does it?  Actually, that paragraph is not quite clear.  What is a
"resource representing a YANG list object"?


/martin


> 
> 
> > We used to have "collections" for this use case, but it was never
> > finished.
> 
> :sigh:   ;)
> 
> 
> Kent // contributor
>