Werk #19682: Event Console MIBs: tolerate non-UTF-8 bytes in MIB files
| Component | Event Console | ||||
| Title | Event Console MIBs: tolerate non-UTF-8 bytes in MIB files | ||||
| Date | Apr 23, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
When browsing the Event Console SNMP MIBs page, the Setup interface crashed
with UnicodeDecodeError whenever a MIB file contained bytes that were not
valid UTF-8 (for example Windows-1252 smart quotes that are common in
vendor-supplied MIB files).
The MIB header parser now reads MIB files with errors="replace", so
undecodable bytes no longer abort parsing. The header regexes still extract
the MIB name and organization from the surrounding ASCII content.