summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch
diff options
context:
space:
mode:
authordheerajpdsk <p.dheeraj.srujan.kumar@intel.com>2022-06-16 23:47:53 +0300
committerGitHub <noreply@github.com>2022-06-16 23:47:53 +0300
commite0c224c79550bf49928bfb75f629233b1ef07c7a (patch)
treedfe08b91193d44f4984117dbd3eef9866e097582 /meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch
parent0945170f93cc0c101bf01739f41136c2f05af570 (diff)
parent1f4be67aa2cc61a3db46c577da5ccd88cc84fa16 (diff)
downloadopenbmc-e0c224c79550bf49928bfb75f629233b1ef07c7a.tar.xz
Merge pull request #82 from Intel-BMC/update1-0.91-151
Update to internal 1-0.91-151
Diffstat (limited to 'meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch')
-rw-r--r--meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch b/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch
new file mode 100644
index 000000000..3269b5ca0
--- /dev/null
+++ b/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb/0034-Update-odata.type-version-of-redfish-v1-AccountService.patch
@@ -0,0 +1,47 @@
+From 9f159168ab5b1e0e73f4af8dd4536e77b440ad0b Mon Sep 17 00:00:00 2001
+From: Anjaliintel-21 <anjali.ray@intel.com>
+Date: Mon, 28 Mar 2022 09:43:03 +0000
+Subject: [PATCH] Update odata.type version of /redfish/v1/AccountService/
+
+Redfish validator was failing and throwing below error:
+*** /redfish/v1/AccountService
+AccountService.v1_10_0.ExternalAccountProvider:OAuth2Service :
+Could not get details on this property (argument of type 'NoneType' is not iterable)
+Type (#AccountService.v1_5_0.AccountService), GET SUCCESS (time: 1.283549)
+complex @odata.id: Expected @odata.id to match URI link
+/redfish/v1/AccountService#/Oem/OpenBMC
+FAIL...
+
+As AccountService_v1.xml version was v1.10.0 and the odata.type was
+"AccountService.v1_5_0.AccountService" which was mismatch.
+So I updated odata.type to AccountService.v1_10_0.AccountService".
+
+Tested:
+
+*** /redfish/v1/AccountService
+ Type (#AccountService.v1_10_0.AccountService), GET SUCCESS (time: 1.286845)
+complex @odata.id: Expected @odata.id to match URI link
+/redfish/v1/AccountService#/Oem/OpenBMC
+ PASS
+
+Signed-off-by: Anjaliintel-21 <anjali.ray@intel.com>
+---
+ redfish-core/lib/account_service.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
+index 55ce6ae..b1950f7 100644
+--- a/redfish-core/lib/account_service.hpp
++++ b/redfish-core/lib/account_service.hpp
+@@ -1280,7 +1280,7 @@ inline void requestAccountServiceRoutes(App& app)
+ asyncResp->res.jsonValue = {
+ {"@odata.id", "/redfish/v1/AccountService"},
+ {"@odata.type", "#AccountService."
+- "v1_5_0.AccountService"},
++ "v1_10_0.AccountService"},
+ {"Id", "AccountService"},
+ {"Name", "Account Service"},
+ {"Description", "Account Service"},
+--
+2.17.1
+