Werk #23097 · Nov 12, 26
REST API: crash on a rule value of unknown shape
Creating or editing a rule via the REST API crashed with an internal
server error and a crash report, for example KeyError:
'piggybacked_hostname_expressions', when the value_raw had a shape
that the ruleset could not read. This happened for rulesets that
convert older value formats, such as "Processing of piggybacked host
data".
The REST API now rejects such a value with status 400 and names the part of the value it could not read.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p22All Editions
- 2.4.0p44Not yet releasedAll Editions