Re: [netconf] Question on restconf empty list reply

Kent Watsen <kent+ietf@watsen.net> Mon, 24 February 2020 20:09 UTC

Return-Path: <0100017078d1f020-3514ea16-953a-48d7-85f2-ab358f2553c9-000000@amazonses.watsen.net>
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 AE0B73A122F for <netconf@ietfa.amsl.com>; Mon, 24 Feb 2020 12:09:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.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 F1Wxaps9yYg9 for <netconf@ietfa.amsl.com>; Mon, 24 Feb 2020 12:09:50 -0800 (PST)
Received: from a8-33.smtp-out.amazonses.com (a8-33.smtp-out.amazonses.com [54.240.8.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BA72E3A1225 for <netconf@ietf.org>; Mon, 24 Feb 2020 12:09:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1582574989; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:Feedback-ID; bh=vQ8rhVh+qPZKXtrzA/sEpBRXviSh/FK9C+GX1p7qxFA=; b=UvemNvTofXHz+8NE81t5GNcE8qdKNiMJLC15EWsLkf+3hmU6JtO9UvcAMnL3u4qj it27py5u8iEHbkSQ20Gb8QmIZApyhX7d2CS292fDawUfOywyt+20COcvncJBhQTqFkE ej+O9WgpZlYHtYL1IzDq+eSysQ6omxylM+YbypmM=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
From: Kent Watsen <kent+ietf@watsen.net>
In-Reply-To: <20200224.201727.524298611078512416.id@4668.se>
Date: Mon, 24 Feb 2020 20:09:49 +0000
Cc: Olof Hagsand <olof@hagsand.se>, "netconf@ietf.org" <netconf@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-ID: <0100017078d1f020-3514ea16-953a-48d7-85f2-ab358f2553c9-000000@email.amazonses.com>
References: <4bca4ca8-0d9f-d986-4521-5c808a6e8a4d@hagsand.se> <20200224.201727.524298611078512416.id@4668.se>
To: Martin Björklund <mbj+ietf@4668.se>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.02.24-54.240.8.33
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/h1o8bfMJxVqS1FhRnS3a0Ush_qs>
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: Mon, 24 Feb 2020 20:09:52 -0000

> 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.


> We used to have "collections" for this use case, but it was never finished.

:sigh:   ;)


Kent // contributor