diff options
| author | Kenny Liu <kenny_liu@jabil.com> | 2026-10-29 10:47:08 +0300 |
|---|---|---|
| committer | Gunnar Mills <gunnar@gmills.xyz> | 2026-11-25 17:20:09 +0300 |
| commit | f9da38bb67b8baa9dbff218af94b07ed583405b3 (patch) | |
| tree | 9c8a9a15d45342eb171215ebc49a0d16cd23f845 /test/include/json_html_serializer_test.cpp | |
| parent | 344623cfee04e37a8a1549b5ea3c04e25e0b391d (diff) | |
| download | bmcweb-f9da38bb67b8baa9dbff218af94b07ed583405b3.tar.xz | |
fix(session): return 204 on SessionService PATCH
A successful PATCH of SessionTimeout on /redfish/v1/SessionService
returned HTTP 200 with a body that holds only an "error" object, with
the PropertyValueModified message. The update succeeded, but the
"error" tag tells the client that the request failed. This confuses
users and tools that read any "error" property as a failure.
DSP0266 1.25.0 clause 7.5.2 "Modification success responses" [1] says
that after a successful PATCH the service should return one of:
- HTTP 200 OK with the JSON representation of the modified resource
- HTTP 202 Accepted with a Location header for a task monitor
- HTTP 204 No Content with no response body
Tested:
Verified PATCH to /redfish/v1/SessionService succeeded and returned
HTTP 204 No Content with no response body.
Change-Id: I7697bc54047312eac277c248b30a44d7d3b70038
Signed-off-by: Kenny Liu <kenny_liu@jabil.com>
Diffstat (limited to 'test/include/json_html_serializer_test.cpp')
0 files changed, 0 insertions, 0 deletions
