From nobody Mon Feb 9 09:43:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+112577+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+112577+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1702598663; cv=none; d=zohomail.com; s=zohoarc; b=X9MRcHMV/WkVQ4sx9I31a6fhTIW2ixF/iIBmgUwaX4nYaWv4FsRxZSb/2P+05oUaxAm7yrhwcr1vDOojlDN/Sm50nPZK1xD8h6zuj+7zjmw4LEn8nyq2KO81ScccDFHbWkJpQrIHsmRxKFkLSE8XhTfj8lrJjwpOTwonkx3qVz4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702598663; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=BYsKqokjMoKeV9rgKbQ9W/aGnXoH1O95ydjSb0dTJr4=; b=cVlBqAiWlQX8HRrT1PPxWq9H1vuKc9f3LeaMbgXPx98i7SU0iQ783H5MSUOo/utp3zgIIOYU8IF7gGAtGvVJj5vDdy5EQVxJpG7CVvdS3M6+wRjKAPXTvQ//nTzi8brm57F7uI413Tp5DE0ojKHZvGz1VQFWGT5ViMOFviZUqxU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+112577+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1702598663470875.9544338078479; Thu, 14 Dec 2023 16:04:23 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Uyaz3YU4XQewsTk/9dGnxBMC+hKXhxjnkeXsDpUYkQw=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1702598663; v=1; b=IFb7iZuFQqymMcmVcQVmJh0aanq4wIDYQ2rFxd7Jd52Xy2/jR2KGb0NFzuYs56kkhH6TiSYs /kZsPNp5Kh0p+8jbwOQy67O+2mQ0cYuN3owSQLv5ryVusSRTLDau7lGFyoAG1UT2eiZsqLV2fw/ ZujA376V83WiNP7ZJEnInQtQ= X-Received: by 127.0.0.2 with SMTP id xbOOYY1788612xb1SXJjR9yt; Thu, 14 Dec 2023 16:04:23 -0800 X-Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mx.groups.io with SMTP id smtpd.web11.45729.1702598662310690093 for ; Thu, 14 Dec 2023 16:04:22 -0800 X-Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-50c0f13ea11so55562e87.3 for ; Thu, 14 Dec 2023 16:04:21 -0800 (PST) X-Gm-Message-State: d8u49225P5Cvjmpookh8oBjkx1787277AA= X-Google-Smtp-Source: AGHT+IHVaOeJogghJTKiN+Nru+au9HMKQrWwkkL5l00c0I6d8fpNSGriRajz2OWNLoo28UrOR6E2Vg== X-Received: by 2002:a19:4311:0:b0:50d:ac3:45c6 with SMTP id q17-20020a194311000000b0050d0ac345c6mr4233635lfa.99.1702598660422; Thu, 14 Dec 2023 16:04:20 -0800 (PST) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id n11-20020a0565120acb00b0050be6038170sm1991256lfu.48.2023.12.14.16.04.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 14 Dec 2023 16:04:20 -0800 (PST) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [edk2-redfish-client][PATCH 4/4] RedfishClientPkg: use POST method while provisioning new property. Date: Fri, 15 Dec 2023 03:04:00 +0300 Message-Id: <20231215000400.5311-5-mike.maslenkin@gmail.com> In-Reply-To: <20231215000400.5311-1-mike.maslenkin@gmail.com> References: <20231215000400.5311-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1702598664156100014 Content-Type: text/plain; charset="utf-8" If EdkIIRedfishResourceConfigCheck fails according to the logic and comment: new resources should be provisioned, so the POST method must be used. Fourth parameter of EdkIIRedfishResourceConfigProvisioning is BOOLEAN HttpPostMode, so we pass TRUE here. Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nickle Wang Signed-off-by: Mike Maslenkin --- RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/Re= dfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c index a26a1083cd74..4fd4845f3420 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c @@ -818,9 +818,9 @@ HandleResource ( // The target property does not exist, do the provision to create prop= erty. // DEBUG ((REDFISH_DEBUG_TRACE, "%a provision for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, FALSE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, TRUE); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "%a, failed to provision with GET mode: %r\n", = __func__, Status)); + DEBUG ((DEBUG_ERROR, "%a, failed to provision with POST mode: %r\n",= __func__, Status)); } =20 return Status; --=20 2.32.0 (Apple Git-132) -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112577): https://edk2.groups.io/g/devel/message/112577 Mute This Topic: https://groups.io/mt/103181641/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-