Werk #19682 · Apr 23, 26
Event Console MIBs: tolerate non-UTF-8 bytes in MIB files
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Event Console
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p1All Editions