Re: [netconf] AD review of draft-ietf-netconf-sztp-csr

"Charles Eckel (eckelcu)" <eckelcu@cisco.com> Thu, 01 July 2021 16:35 UTC

Return-Path: <eckelcu@cisco.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 B14683A0A02; Thu, 1 Jul 2021 09:35:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.595
X-Spam-Level:
X-Spam-Status: No, score=-9.595 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=JBLsxZJf; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=cWYiZga+
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 420HmZzaMQSV; Thu, 1 Jul 2021 09:35:47 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0EC4C3A0A00; Thu, 1 Jul 2021 09:35:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=42471; q=dns/txt; s=iport; t=1625157347; x=1626366947; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=+FLcnJt1HJ5eqY1L4pJdRqebr7Iw/AKXbgQu64oo2/k=; b=JBLsxZJfCyPASmuknjYL1u0JXTQQRmd/Epbf3VJ2+230Yk6s5/KojIpi Dnj/sknZiqM+VA75oa3ELmRnVIRRLkne+NqhbQEpbqjVbjYCsbB8uhcRm ikAIU849YmUfLj9KtZLdgmsk6hG4MzP0Rhq+f0WvKGHtzWYBIu/mS2l3j E=;
IronPort-PHdr: A9a23:F6t9JhxpJOFHWrXXCzPDngc9DxPP853/PxUe7dwsjLcdOqig/pG3OkvZ6L0tiVLSRozU5rpCjPaeqKHvX2EMoPPj+HAPeZBBTVkJ3MMRmQFzC8+eAkq9J/nvPGQ2Gc1YXwpj+He2eUFeBMf5YQjUpXu/pT4fExnyL0x7POPwT4XTlM+wkeu1/s67Xg==
IronPort-HdrOrdr: A9a23:VLKw7amglT8lnrS+Tuih/8tUkD3pDfORimdD5ihNYBxZY6Wkfp+V/cjzhCWbtN9OYh4dcIi7Sda9qXO1z+8T3WBjB8bdYOCGghrpEGgG1+vfKlLbalbDH4JmpMJdmu1FeaHN5DtB/IXHCWuDYqwdKbC8mcjC74qzvhQdLz2CKZsQkjuRYTzrdHGeMTM2fabRY6Dsn/avyQDQHUg/X4CePD0oTuLDr9rEmNbNehgdHSMq7wGIkHeB9KP6OwLw5GZdbxp/hZMZtUTVmQ3w4auu99uhzAXH6mPV55NK3PP819p4AtCWgMR9EESotu/oXvUkZ1SxhkFynAid0idyrDAKmWZ5Ay1H0QKXQohym2q35+Cv6kd115ao8y7ovZKqm72IeNt9MbsduWqcGSGptHbJe7pHof52NiuixuhqJAKFkyLn69fSURZ20kKyvHo5iOYWy2dSSI0EddZq3MMiFNM8KuZyIMvW0vFrLABVNrCR2B+WSyLTU1nJ+m10hNC8VHU6GRmLBkAEp8yOyjBT2HR01VERysATlmoJsMtVcegE283UdqBz0L1eRM4faqxwQO8HXMusE2TIBRbBKnibL1jrHLwOf3jNt5n06rMo4/zCQu1H8HLzouWKbLp8jx96R6vDM7z44HR7yGGHfIzmZ0WY9ih33ekOhlTTfsufDRG+
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BWAABk7t1g/5hdJa1aHAEBAQEBAQcBARIBAQQEAQGCBQcBAQsBgSIwKSgHd1o3FxqESINIA4RZYIhsA4EQmRWBLoElA08FCwEBAQ0BASoBDAgCBAEBhA5EAheCXAIlNAkOAgQBAQESAQEFAQEBAgEGBHEThWgNhkUBAQEBAwEBEBEdAQEpAwsBDwIBCBEEAQEhAQYDAgICJQsUCQgCBA4FIoJPAYF+VwMvAQ6cMQGBOgKKH3qBMoEBggcBAQYEBIFJQYNeGIIyAwaBOgGCeoQMAQGGYSccgg2BFSccgWFKNj6BUoEQAQECAYEnHhcuCYJhNoIugjQIKjEGFxsMJgQULw4BAVsgBR8VERUpAgMBCioLIJEjCzKDD4ghg2OJRZB2gRYKgyGKJJN+BSaDYYtBln+iHJNTDQJJhBoCAgICBAUCDgEBBoInO4FZcBU7KgGCPj4SFwIOjh8MFoECAQiCQ4UUhUpzAgE1AgYBCQEBAwl8inkBAQ
X-IronPort-AV: E=Sophos;i="5.83,315,1616457600"; d="scan'208,217";a="882697831"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 01 Jul 2021 16:35:45 +0000
Received: from mail.cisco.com (xbe-rcd-003.cisco.com [173.37.102.18]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id 161GZiri029137 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 1 Jul 2021 16:35:45 GMT
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xbe-rcd-003.cisco.com (173.37.102.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 1 Jul 2021 11:35:44 -0500
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 1 Jul 2021 12:35:43 -0400
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.18 via Frontend Transport; Thu, 1 Jul 2021 12:35:43 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D6OnS+5Uo3AFors+zplZUbZcjXfNjsZP5PZ2o4+Eq5IEYD8TpvFomqqipCnvB8H+XPfUNT2K63QSCw7Cq+reAAhSlL7k6HZhfF8H8UhQx0zQV1s5ebmNvCiW0/uuFzj76sPY3VmNj0E45aznXSbNpVg7k8QoZ26Q2DFqxB7crSqha3M0lhmdBsVGM7yxzI2NU6QFYB1Tli7nfhMHiuZAT4Pzu5uCl4/GtWpSoPjHcCyjNJdjgwkp0JTHAVXufuRPFei/PM6BdKgq7DQaw+3vFAdi04Zo19fIJIaHbQckMYETPZyNQghxFLN88taDV9Kd/GziyBFtGJzfTe2iqqbZxA==
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=+FLcnJt1HJ5eqY1L4pJdRqebr7Iw/AKXbgQu64oo2/k=; b=ZHb4HTjUk1YQxpZTYR1CNXnn9J+CUbaNgIsZ0l5hyOY45kwP5IniUS5DvwP0zOzRwRZK9MPxQYzLea+oCyygnqsH9lJSxTKvXMIQ/E+8UeBloog2opuOcYi2qEeRBbJzSQsUwow6ZWOFlyLyrhewnN09+qozTyi/CQ86QAa/9EvIHv9O2pZLhz7qmcB88YlkSMACKu/HcIxjsxW1VFfCAQRTGTksflOE5tXWmioOwCjxlpEZm6MaqBCJfLbFZ5Rr6AFqkJ1aK7t79fRHdgn9PNnDsjWRCK3E6RqgiY1LPup+Px3Z8/xp11HZyoeRgByIFewpE1MPHnNpvEqW8TMu/Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+FLcnJt1HJ5eqY1L4pJdRqebr7Iw/AKXbgQu64oo2/k=; b=cWYiZga+gldKSvPUUUfWw2v4lrEIrrwcKM0qdbSOkc/DIjzbdPqZeoee2Wx21svmsahxTtgC6gDBU7Fdj733Y51tlcYjeSVrzSQEh5zYzYxTZnlWhqtbufY8J2sbzxL788KqR1JaRsoJk8bEwSpfq0m3kKesbwEu5iGyNAOS8C8=
Received: from SJ0PR11MB5053.namprd11.prod.outlook.com (2603:10b6:a03:2af::17) by BYAPR11MB3400.namprd11.prod.outlook.com (2603:10b6:a03:1a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Thu, 1 Jul 2021 16:35:42 +0000
Received: from SJ0PR11MB5053.namprd11.prod.outlook.com ([fe80::dcb8:9b1d:cae2:468f]) by SJ0PR11MB5053.namprd11.prod.outlook.com ([fe80::dcb8:9b1d:cae2:468f%7]) with mapi id 15.20.4287.023; Thu, 1 Jul 2021 16:35:42 +0000
From: "Charles Eckel (eckelcu)" <eckelcu@cisco.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: Kent Watsen <kent+ietf@watsen.net>, "draft-ietf-netconf-sztp-csr@ietf.org" <draft-ietf-netconf-sztp-csr@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] AD review of draft-ietf-netconf-sztp-csr
Thread-Index: AQHXZq/lytEsFO6R0kKt+4W9TRiTnasrgxoAgAABXgCAAra0AIAAI0wAgAACaoA=
Date: Thu, 01 Jul 2021 16:35:41 +0000
Message-ID: <BE6367F1-498E-46A0-AF28-90C1CEB9909F@cisco.com>
References: <DM4PR11MB543889219C08694C147C6DA4B50A9@DM4PR11MB5438.namprd11.prod.outlook.com> <0100017a2f082e6a-1197e3c8-f8be-4d59-ba1c-8d39029a31fc-000000@email.amazonses.com> <DM4PR11MB543824369BA6920C7FA67BDEB50A9@DM4PR11MB5438.namprd11.prod.outlook.com> <0100017a59889ad9-f6e6f999-bc15-437e-b802-18e11330e81b-000000@email.amazonses.com> <0100017a598d16c2-ad53b3ac-6ad0-4dc6-af51-7d1dc1b9ad9f-000000@email.amazonses.com> <68207CCB-3FD3-45BC-8640-32B0E54F731B@cisco.com> <DM4PR11MB5438FDC9FD698E6E979ECDDBB5009@DM4PR11MB5438.namprd11.prod.outlook.com>
In-Reply-To: <DM4PR11MB5438FDC9FD698E6E979ECDDBB5009@DM4PR11MB5438.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3654.100.0.2.22)
authentication-results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [2601:647:4e00:f10:782b:91e9:b3ae:69a4]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: c5973de5-4948-45a4-6c81-08d93cae4475
x-ms-traffictypediagnostic: BYAPR11MB3400:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <BYAPR11MB3400FC51E00867D9DB28DAB2B2009@BYAPR11MB3400.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: zGsN2J1W22yxgBkUpe10IS9NQ9S421T6rRbB0UShNAazJvH9Ugmdc05Eej1EbzF5vMWT7d7CMuV1fh7U2nxfI6FZdT3WX3xmL7mDrvJ02hh0FlOZSAhtyiJikYx1FfBYQAVJ0tGyUoJKxnOsAr4dO1HHElYsf0NAZAPDB4nVao4kGYkJDMNj3Hfy8qQIhxA+gNyURrm6hsXHqktNYSSL4S4ku7dgKKiodD3LkGM5grG6WxB1bYq9rKNSEHsU8Gpx17A2D9a1UbQk29dJ3g3Ol+2NWE4q8MWjkMjqPFdBEygFnpFEA5LosVr0HNAJQQKQrqEHwhmSzqi4LxdmBZOYRZ1YdnmiRNolYbKnZYhwpKCK/Uf06eFsn32WOTZ86EWD00A36dhtnW4cy0uhLKsc0btxpwrWObvexfVKY3mRDDoyDG5jVBREv2Hg3NAvMzFdRg5gLh3nfDkwCO8CNMGc02XTQZ15x4LXetQar8xms+OKPQBOS0tE69VY4PCN9v0qJR1qdlxGI8CDzfOx/FWLF1G/GyqsH5kIOyMSp1dAgL4KT6PIvW+j5NZ5T7RALJr+CaG4OM1YaFpm5GzvXThvemLyE8M95H6XbltFdbTeSHCVfmwtSZH+OUfXY++LGWyLZa3Zv/YXWyWWNbxPFUUrufNKA1GkUhuhaxxbTg3ECuDHThZt5dJ1tV3lJi7k9k0Yj+lFJPsx5oGabRI/iiCkpNGLn+Pv0jBuPxTqtWmlnL8IOzRIPLXCENiWMt1V/t9LsmD4T4yM0bTktJQDa4Mr1yiMZXn9AJWQx9OZfdDfVgEidTVE30bGHg+zkylBVd1BKg8qfMSLiP1s0KeaNuJOsJCR6x7efj3f3YxAQEMdKKs=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB5053.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39860400002)(376002)(136003)(396003)(366004)(66556008)(83380400001)(8936002)(66476007)(2906002)(66446008)(76116006)(64756008)(66946007)(166002)(2616005)(6862004)(5660300002)(4326008)(37006003)(966005)(478600001)(54906003)(6506007)(316002)(6636002)(86362001)(6486002)(53546011)(38100700002)(8676002)(71200400001)(186003)(33656002)(6512007)(36756003)(122000001)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: kWWEQoDLfoG3oCELc2SSs/xaW8j6MQyu/QTUsN5GUUfDDKOv7eCbVjAsSnu8rq2w0PRS33TtO0AJChlumo9DLGlSl12oZYlKEqWkwv5f3RCaVD3AtIRry3SkIC2MXHbTQzLDwx7TBx8yX92eDFz4X94LN6P99iSSV3PWOK9OH7WEqjCcgpzhTGWBTeMyGdFpJYVdaPUQtUtZrFA5ABwv+wfhAmLtOu/hJ+dNEewXCPt4ez+Zlzjv0SrU1oiRkYCCCMogG1bInCEkHxUmBn4wrJeP/qIjrO7MF4gS0EqA8KqFxXgkmc30L19lz73VKFZa5I8EcYDG7DMjUShQw5CHFIDcluaQsTSLCn/5Lp32RXUKSf65BMBfIEFDA+hbCY6b2KX/N5P4CwIIggD3hXcusrWs0Cf1XnuN6U0fRHO/3NF2T+iOF+QJbd6gQHancRlfHz/Kn/N47Q/G52KYjmAPxGw2+PwO0+s8b7QJs0sB4KRFUeJ3AZpNiCINe0OaeOGkuaPMrOVbVWMlENflBbNmq6AC6gwH83kubIWmRzSQaMp+13Sr+xhn8vCk3Y8GzbpAfDjU8KuMf4P++TEGiXRz1BkMavQ9DutyytiJJ0md2HbCaIXrSLnUc7ZWxM6rQf4iP5NjoWtOs+UjjXX4kCzP2v+1tzVc6jQAtnH88/kk6+WaZ21ADSuV0mQdwTAhWTrfjDASqn9sZ+6b15bV6UtnUd4NOM/Etkaz3mJQ03+Pks2nuHZAOKZ1aPo2ESnNiS0ojKfToPqrPxEOBFsREu0VKvx6X189jmAmdMTwSLzyRUwtLEHH9sptscVYkZKjBBLrOElY5G6EqKSmc97su6DVVcvM6ZTg0xfPH+do+Ua0Si+vnouHv7t8MaNjjkgww/fACQtVoYgDx3rjjZX3PsWuSEzj544AbLD0Br5E24dZ9c6EL1pZCkUMONJ/0xsssauqz2Mjct5EicA1IjEgBFliOlCi8zEDbbEWv9Ifz6WsnflcqvW3knOIvnw7Q32vGwnoSppwnA57xBFz7rjAiS1pA7BvL7Kqcc0vpzYbucD0POROX53ebo9YfYuCoMlvpFB4yaDmevB1VwVne+AhJhFPeyxlq0zBvEHGCqigTE9rRFvoBCibcjUyPuLaJ81M+kGPbKwwxe8cSqUMphNkqDMc6RPSr5iBbWisX8ir8vJmCaBI6Wny3xOMrRwfEW8/zO93xcNfhyTrjBxaVlT8FSyjyiSYi9nDHWBHwZtjDCLBbcsxv+2/OJYjmIXzK2UsboqxLkO7VLOTm14ZExS4XkT/wygFeYl8MGelg/ONuCAcc5N2bRqFd284bTKze/sWNkCh9TKk4XjpfBA+0ZayZxySUUsbRkaOBQdAXu0RlSNUBXCiyDNvcEcqtOm/KGx0PD/B
Content-Type: multipart/alternative; boundary="_000_BE6367F1498E46A0AF2890C1CEB9909Fciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB5053.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: c5973de5-4948-45a4-6c81-08d93cae4475
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 16:35:41.8784 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: MNW0hJSY8UZGgefFIzGNNtAFRp5vmnRdsV9FNor0djQcgQGE5EZs2XImrt0VpS3MyJXowU0ao2bo7Fo202GFyQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3400
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.18, xbe-rcd-003.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/LvJbhSZQeH1TRV-PfmbCa4P52t8>
Subject: Re: [netconf] AD review of draft-ietf-netconf-sztp-csr
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: Thu, 01 Jul 2021 16:35:52 -0000

I agree that defining a new status code is likely not a good way to go.
A 4xx response seems better to me than a 3xx response.

Cheers,
Charles


On Jul 1, 2021, at 9:27 AM, Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com>> wrote:

Hi Charles, Kent,

Thanks for the suggestion.  The problem with that 401 requires the server to return a WWW-Authenticate header field (as per section 15.5.2, of draft-ietf-httpbis-semantics-16<https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-semantics-16#page-161>).

I’ve also asked Francesca (ART AD responsible for HTTP) if she has a view.  She has taken a quick look and suggested that defining a new code is probably not the right way to go, but said that she would take a proper look after today’s telechat, but if we want to get other opinions then we could also ask on the httpbis mailing list.

However, I also noticed that RFC 8040 maps from NETCONF error-codes to status-codes, and defines:
+-------------------------+------------------+
| error-tag               | status code      |
+-------------------------+------------------+
| missing-attribute       | 400    (which is what you had originally).

An alternative could be:
| data-missing            | 409              |

Which NETCONF defines as:


   error-tag:      data-missing

   error-type:     application

   error-severity: error

   error-info:     none

   Description:    Request could not be completed because the relevant

                   data model content does not exist.  For example,

                   a "delete" operation was attempted on

                   data that does not exist.


Which would go hand-in-hand with 409:


15.5.10<https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-semantics-16#section-15.5.10>.  409 Conflict



   The _409 (Conflict)_ status code indicates that the request could not

   be completed due to a conflict with the current state of the target

   resource.  This code is used in situations where the user might be

   able to resolve the conflict and resubmit the request.  The server

   SHOULD generate content that includes enough information for a user

   to recognize the source of the conflict.



   Conflicts are most likely to occur in response to a PUT request.  For

   example, if versioning were being used and the representation being

   PUT included changes to a resource that conflict with those made by

   an earlier (third-party) request, the origin server might use a 409

   response to indicate that it can't complete the request.  In this

   case, the response representation would likely contain information

   useful for merging the differences based on the revision history.


I don’t see any great choice here.  I now think that aligning with RESTCONF seems to be right thing to do (so not using 300).  Perhaps choose “data-missing” & 409 if you think that is slightly better, or otherwise go back to “missing-attribute” & 400.

Regards,
Rob


From: Charles Eckel (eckelcu) <eckelcu@cisco.com<mailto:eckelcu@cisco.com>>
Sent: 01 July 2021 15:21
To: Kent Watsen <kent+ietf@watsen.net<mailto:kent+ietf@watsen.net>>
Cc: Rob Wilton (rwilton) <rwilton@cisco.com<mailto:rwilton@cisco.com>>; draft-ietf-netconf-sztp-csr@ietf.org<mailto:draft-ietf-netconf-sztp-csr@ietf.org>; netconf@ietf.org<mailto:netconf@ietf.org>
Subject: Re: [netconf] AD review of draft-ietf-netconf-sztp-csr

Hi Kent,

I have not been following this draft closely but had a thought on this thread that I thought might be helpful.

It seems to me a 401 would be more appropriate in this scenario.
If the server does not require a CSR, it returns a 2xx response.
If it does require one, it returns a 401 indicating which one it requires.

Cheers,
Charles


On Jun 29, 2021, at 1:54 PM, Kent Watsen <kent+ietf@watsen.net<mailto:kent+ietf@watsen.net>> wrote:

 s/Since been/I’ve been/

K.



On Jun 29, 2021, at 4:49 PM, Kent Watsen <kent+ietf@watsen.net<mailto:kent+ietf@watsen.net>> wrote:

Hi Rob,

Since been spinning on the below thread since we had it and am wondering if if would be best to ask for an HTTP expert review?   Please advise.

The reason being is that a close reading of "300 Multiple Choices" suggests that it’s used by an HTTP-server to indicate when there are multiple choices for a resource, whereas in this exchange, the “csr-support” node in the client’s POST effectively indicates that *it* has multiple choices for the server to choose from…

I’m beginning to wonder to the document might need to define a custom HTTP status code to properly indicate the semantics of the response…

Kent // contributor




2. Section 2.2:
 Assuming the SZTP-server wishes to prompt the SZTP-client to provide
 a CSR, then it would respond with an HTTP 400 (Bad Request) error
 code:

I wonder whether returning a 400 "Bad Request" error is really the best
return code, i.e.,

it wasn't clear to me whether this requesting the capabiltiies is really an
error.

Did you consider potentially using other return codes?  Possibly:
300 Multiple Choices,
403 Fobidden,
406 Not Acceptable

I did before look at all the 4xx codes.  I was initially drawn to 412
Precondition Failed, but noted that it is specific to HTTP request header
fields.   As for the others you mention, the semantics of 403 Forbidden is that
the request should not be repeated, which isn’t out case, and 406 Not
Acceptable regards the use of the HTTP “Accept” headers, which aren't in
play here either.  That said, 300 Multiple Choices does appear to be a better
if not perfect option, so I made that change in my local copy.
Ack.


_______________________________________________
netconf mailing list
netconf@ietf.org<mailto:netconf@ietf.org>
https://www.ietf.org/mailman/listinfo/netconf