Werk #14949: Malformed UTF-8 data no longer result in loss of state file

Component Core & setup
Title Malformed UTF-8 data no longer result in loss of state file
Date Mar 2, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p25 Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, if for some reason a plugin sent a malformed UTF-8 string, it broke the integrity of state.pb and resulted in the loss of the state data. This behavior is explained by the fact that the Protobuf API allows to write incorrect UTF-8 strings, but does not allow to read them.

This issue has been resolved in this release.

To the list of all Werks