Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7161

SnakeYaml 1.32 changed the default file size limit to 3mb

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version dev-Spigot-4aa5ead-c2c3908 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT)
    • Yes

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/commits/acdb55f9a97c6b361947405717eb710b0200e165

      With the upgrade to Snakeyaml 1.32, there is now a default size limit of ~3mb: https://bitbucket.org/snakeyaml/snakeyaml/commits/440d98e2ebd586aafd9034fc74a2a47c656eb0ce

      There are some plugins that use Bukkit's configuration API for storing plugin data that can exceed this new default limit. It might make sense to increase or even remove the default limit inside Bukkit (the previous limit was 100mb).

      Error:

      org.bukkit.configuration.InvalidConfigurationException: org.yaml.snakeyaml.error.YAMLException: The incoming YAML document exceeds the limit: 3145728 code points.

      Other alternatives could be to:

      • Rollback the upgrade.
      • Expose the file size setting to plugins.

      But I think increasing the default limit will probably suffice.

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: