Re: [netconf] Question on restconf empty list reply

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Mon, 24 February 2020 20:36 UTC

Return-Path: <jason.sterne@nokia.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 C1B813A12B3 for <netconf@ietfa.amsl.com>; Mon, 24 Feb 2020 12:36:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 qiSEbVsX3whf for <netconf@ietfa.amsl.com>; Mon, 24 Feb 2020 12:36:41 -0800 (PST)
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2097.outbound.protection.outlook.com [40.107.94.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 56FF73A12B2 for <netconf@ietf.org>; Mon, 24 Feb 2020 12:36:41 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k4kF4eK72ynRSDmEh9m9zg7984UdliPdY0uBrv7NBpx/RWfmfrOVczRfJPDRzhlWYuIKpWFkW4eKhRwlJL+0+wH9ej0UH0gZz6YLdRVxQ2mGakIVGg3z1SvzR4xeQmTs8e0jVGfJ1aFlC+RURpek7Z0QtLslD1WL8Dc1jeXJGsEEJ7HM4VEPEaCccEhY3DAGROcY0vqtk1sfOcHSgUwL/ngmdH4KgBoZcZ/3i15Cc3ywxq+GP+ZZHLSqr40iTrWVMIAqw3q60aIhMpJj/sMq7a9cxa/X0r1Aa2gRBOMGO7H6mzdtZbCeqF2itlytSWH5v0IfIPEizBwPJzApR4lfWA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wTuFWHlD/KcqySYxeMkr0tSPP2V+ONBHEqD8efZxlgI=; b=BmX4j6KrOX1qVVZcySS/XSM7liYRBLSCd5dElt0NfNlNgEICXFnsV2npEMGR+XoqP05BFt/DaaSSpijQYk+y8tlSgihYIX8gl6cjHYrKktn6bX6uFLsaIWYID18f46r//UEarF7zN0IPZ1CyatG0YmKAeY0l1rXPMj1e+tYZW3kmcZ1osQi2ADXLTeXYvM80GOOeIfX/+QxODaKQgunTiQhdLeaa5+iW0VGMaIGu2lZZM5eX+27gOqJdgXhKdEggr83eoVFffCLQwtx1Obh1/cLl2GvT1SdNH/uVCqDy19CMOHzMNxcVu4tFcbTRlwM7dKexmCazaDVAWbk4T0Tpdw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wTuFWHlD/KcqySYxeMkr0tSPP2V+ONBHEqD8efZxlgI=; b=m/tME0+uB07u9YnMXI/W2PJd7IMPoXcuNwX9kkF8amgDavHg67BhkrC/RBqmDDdgaqsINDrkCb5i/qfGCr6uutkoJAVlpfvh4KpxnyaQQfGWefw1FdOl4T4qQkhQMbzkeP6KPS0knDtAS8wSME82IT8K6HlGagU4DXg87jsm68c=
Received: from DM5PR08MB2633.namprd08.prod.outlook.com (2603:10b6:3:ca::21) by DM5PR08MB3483.namprd08.prod.outlook.com (2603:10b6:4:6b::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18; Mon, 24 Feb 2020 20:36:38 +0000
Received: from DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::455:66cb:efa2:fabb]) by DM5PR08MB2633.namprd08.prod.outlook.com ([fe80::455:66cb:efa2:fabb%9]) with mapi id 15.20.2750.021; Mon, 24 Feb 2020 20:36:38 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Kent Watsen <kent+ietf@watsen.net>, Martin Björklund <mbj+ietf@4668.se>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] Question on restconf empty list reply
Thread-Index: AQHV605lCORAmIjLkka6fPXzgh4EJagqzTcw
Date: Mon, 24 Feb 2020 20:36:38 +0000
Message-ID: <DM5PR08MB263324B403A0646E24484B4F9BEC0@DM5PR08MB2633.namprd08.prod.outlook.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>
In-Reply-To: <0100017078d1f020-3514ea16-953a-48d7-85f2-ab358f2553c9-000000@email.amazonses.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=jason.sterne@nokia.com;
x-originating-ip: [65.110.215.75]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: f64209d9-4814-43fe-8aba-08d7b9693fa6
x-ms-traffictypediagnostic: DM5PR08MB3483:
x-microsoft-antispam-prvs: <DM5PR08MB34833D523820A11633A0B1B79BEC0@DM5PR08MB3483.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 032334F434
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(4636009)(366004)(199004)(189003)(186003)(110136005)(8676002)(966005)(2906002)(81166006)(66446008)(4326008)(66574012)(9686003)(64756008)(81156014)(55016002)(498600001)(66556008)(71200400001)(66476007)(66946007)(76116006)(52536014)(5660300002)(7696005)(8936002)(26005)(33656002)(6506007)(53546011)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR08MB3483; H:DM5PR08MB2633.namprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: qRHZE3ynVhz3QMIPsGKFkXkOAA8awqLJiJz/LqXUG9NserB3wD/5nz5FSPsBSDDw/07RQmAJPMHcsaBeAgpUl6B4NmCQh7p1522u2xWvbWD5km6Q+nmMw9YahQbNStU373kiJ2EV8tuYMdWk4sE1gQTI/7C3M9hZQcKVFxRNE5Js4b28VyekkG07RjSEQp5tkhwOL0LANQHa7yeSNM6QzVJqrL8TrZNj9fOygj7+peZ1HfmJt2yOjfT0JCpXwNFhK0EgzO+fjCQb+0ZjnkZHURZZc+RtGSq0j9/TnqbMsWq7FHQYmYmq58Mu6f5tyDXCpQPDr18sV0GEHD84zbLh3Z184h6F3P5Xh+xjaV11OJwNmr9O02c9hTcSjWAm7C7Co1m4XaW3UodrgSaUxv5GoxWbcK2j1aV6nB4DSU6eBxTTUImPBVB3c85s8ctyEp4+X6mz9AXKXalxYLrtZwStddsbsxf8/yNV1rHy2X2RIytd7V3PmYxx2y+OG8n4cDWvSuH7CtuETF74wa1ZERUAXw==
x-ms-exchange-antispam-messagedata: Sg/dSEvg4N5Ujxmrt8ZnDIhpbyeP7JWnuwah3vDw61NKPTSJiZ/dLpgvxGY1K4K9KMPXe1WKdImkK9+aVuRJ/RRtr6wCzLsWdOjuBRLTuLmNS0fd8kNFHwdv27XL9YUuyhwwsUOUzrjk0VRpvPmm9g==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f64209d9-4814-43fe-8aba-08d7b9693fa6
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2020 20:36:38.5828 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: dG56/GNoGbsey8DeFl88ASPASnfOKJhV5/pcpORL2x1cqBrt3/cy+Z3IJ6bJWkYPoEcmo7MiO/QYzxgyKT8JpA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR08MB3483
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/fo-4YcxPANpMIp5w3iYveGu_HUQ>
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:36:43 -0000

Hi guys,

For NETCONF this should *not* return an error though right? It should just return an empty data set.

I don't know enough about RESTCONF but I'm surprised it would return an error in this case (too bad it would be inconsistent with NETCONF).

Jason

> -----Original Message-----
> From: netconf <netconf-bounces@ietf.org> On Behalf Of Kent Watsen
> Sent: Monday, February 24, 2020 3:10 PM
> To: Martin Björklund <mbj+ietf@4668.se>
> Cc: netconf@ietf.org
> Subject: Re: [netconf] Question on restconf empty list reply
> 
> > 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
> 
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf