Werk #15605: mk_filestats: Improve Handling of non-UTF-8 file paths
Komponente | Checks & agents | ||||||
Titel | mk_filestats: Improve Handling of non-UTF-8 file paths | ||||||
Datum | 18.04.2023 | ||||||
Level | Kleine Änderung | ||||||
Klasse | Bugfix | ||||||
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen | ||||||
Checkmk versions & editions |
|
Previously, the agent plugin mk_filestats.py would show an error such as
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 42: invalid continuation byte
if it encountered any file, whose file path cannot be encoded to UTF-8. With this werk, the plugin no longer crashes. Any non-UTF-8 sequence of bytes is replaced with U+FFFD. In particular, this affects the filters and grouping.