Method getUserStatus() (line: 75 in src/accountsService.go) searches Account by comparing the Account’s UserName (e.g. root), with Account Id received from Url.
The method should compare UserName field in each Account, not links.
Here is the AccountCollection:
The mentioned method searches in this collection the following URL:”/redfish/v1/AccountService/Accounts/root” for root user where “/redfish/v1/AccountService /Accounts/2” is assigned to root.
Method getUserStatus() (line: 75 in src/accountsService.go) searches Account by comparing the Account’s UserName (e.g. root), with Account Id received from Url. The method should compare UserName field in each Account, not links. Here is the AccountCollection:
The mentioned method searches in this collection the following URL:”/redfish/v1/AccountService/Accounts/root” for root user where “/redfish/v1/AccountService /Accounts/2” is assigned to root.