mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 22:55:14 -05:00
[GH-ISSUE #3300] POST /resource/{resourceId} returns sso: null even though the value is persisted correctly #39155
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fperk on GitHub (Jun 17, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/3300
Describe the Bug
Description
Calling the resource update endpoint with
sso: truereturns HTTP 200,but the response body contains
"sso": nullinstead of the value thatwas just written. A subsequent GET on the same resource correctly
shows
sso: true, confirming the write itself succeeded — only theupdate endpoint's response is wrong.
Impact
This breaks API consumers that rely on the mutation response to
reflect the new state (rather than re-fetching), since
nullisindistinguishable from "field not set." In our case it surfaced as a
Terraform provider plan-consistency error (provider sets state from
the POST response, getting
falseafter coercingnullfor anon-nullable field, while the plan expected
true).Environment
To Reproduce
POST /resource/{resourceId}with body:data.ssoisnull.GET /resource/{resourceId}.data.ssois correctlytrue.Expected Behavior
The POST response should reflect the same persisted state that GET
returns — i.e.
sso: truein step 2.