summaryrefslogtreecommitdiff
path: root/HEADERS.md
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-10-10 10:56:45 +0300
committerEd Tanous <ed@tanous.net>2022-12-07 03:25:49 +0300
commit6f284d244124c54db4d6fad6063b2aced18a844b (patch)
tree4503acaf8c5c6a975b589a6bcbae56b558c04eaa /HEADERS.md
parent2d6cb56b6b47c3fbb0d234ade5c1208edb69ef1f (diff)
downloadbmcweb-6f284d244124c54db4d6fad6063b2aced18a844b.tar.xz
log_service: Fix behavior of getting single PostCode entry
Currently getting single PostCode entry returns a LogEntryCollection with the specified LogEntry in its Members. Since Redfish Service Validator does not follow the links in LogServiceCollection[1], such unexpected behavior passes the validator. This commit makes it return the LogEntry itself (or 404 Not Found) when requesting it. Fixes Github issue #236 (https://github.com/openbmc/bmcweb/issues/236) [1] https://github.com/DMTF/Redfish-Service-Validator/issues/519 Tested: * Confirmed getting a valid PostCode entry now returns a LogEntry, and getting invalid entries like B0-1, B1-0, B1-999 or 123 (Not properly- formatted ID) responds with 404 Not Found. * Get PostCode log entries collection still returns LogEntryCollection containing first 1000 PostCode entries by default. * Redfish Service Validator passed. Change-Id: Ice6b8742caea96ad3d436d57898202fe7362b150 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'HEADERS.md')
0 files changed, 0 insertions, 0 deletions