summaryrefslogtreecommitdiff
path: root/website/src/docs/configuration.md
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-08-05 02:23:04 +0900
committerSho Sakuma <me@m1sk9.dev>2026-08-05 02:23:04 +0900
commitc29d1621b26f9c1dfbf0a26f4433996060babf10 (patch)
treed1c9212600bc111031ac8a8a16b8f2fac0e08d6d /website/src/docs/configuration.md
parent6a45b5bb4fe3ab660eb92dc92d38b3d6c8c1c0fa (diff)
downloadLunaticChat-c29d1621b26f9c1dfbf0a26f4433996060babf10.tar.gz
LunaticChat-c29d1621b26f9c1dfbf0a26f4433996060babf10.tar.bz2
LunaticChat-c29d1621b26f9c1dfbf0a26f4433996060babf10.zip
fix: keep a config.yml the YAML reader rejects from disabling the plugin
Catching YamlException at the parse step covered kaml but not the scanner underneath it: a file saved as UTF-16, or one truncated with NUL padding after an unclean shutdown, fails inside snakeyaml-engine's reader with an exception that is not a YamlException. It escaped onEnable and Bukkit disabled the plugin over a config file - the very failure reading per setting was meant to prevent, and one the catch-all this replaced had handled. The same gap swallowed the serializer's own non-YamlException fallback. A UTF-8 BOM is also stripped before parsing. It otherwise stays on the first key, which strictMode = false drops as an unknown setting without logging anything, so the operator sees exactly one setting ignored and no reason why. Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'website/src/docs/configuration.md')
0 files changed, 0 insertions, 0 deletions