Werk #18758 · Jul 21, 26
REST API: fix 500 error when reading a folder with OpenTelemetry data enabled
Enabling "OpenTelemetry data" on a folder sets its metrics_association
attribute. Afterwards, requesting that folder via the REST API
(GET /objects/folder_config/{folder}, as well as the folder collection)
returned a 500 Internal Server Error with the message
"Mismatch between endpoint and internal data format." / "Not a valid string.".
The folder attribute schema did not declare a field for metrics_association,
so its value (a structured tuple) was routed through the generic custom-attribute
handling, which expects plain strings, and serialization failed.
The folder schemas now expose metrics_association in the same way the host
schemas already do. Reading, creating and updating folders with
metrics_association set (both "enabled" and "disabled") now works and round-trips
correctly.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedUltimateUltimate + MTCloud
- 2.5.0p10UltimateUltimate + MTCloud