Bug #26939
openUser management UI does not display when a user info is a complex JSON object
Description
When updating a user information in the user management API, in the field otherInfo
, if the values are JSON but are not string (int, null, object), the API will accept the update.
But when opening the user management page, there is a text Waiting for server response
, and there is a notification error, and some network requests in the browser network tools are aborted.
This is due to specifically decoding strings in the otherInfo
field in the Elm app, and it seems to fail silently, without an explicit decoding error.
We should be able at least to display the custom information in the user management UI, even if the format of values is not supported for edit (we don't know yet how to edit ints, and JSON objects).
Workaround is to update the user information data with string values.
Files
Updated by François ARMAND 8 days ago
- Priority changed from To review to 1 (highest)
Updated by Clark ANDRIANASOLO 8 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from Clark ANDRIANASOLO to Raphael GAUTHIER
- Pull Request set to https://github.com/Normation/rudder/pull/6390
Updated by Clark ANDRIANASOLO 7 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|663c92a1ec8b40bcb0c7135088a8347e36ef5ec5.
Updated by François ARMAND 3 days ago
- File clipboard-202505271512-xob8k.png clipboard-202505271512-xob8k.png added
- Fix check changed from To do to Checked
Works as expected: now the unknonwn field is displayed without breaking anything