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

SnakeYaml 1.26 limits non-scalar (null) nodes while 1.25 does not [1.16.1]

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-ad703da-d77f4d9 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
    • Yes

      Any null node in SnakeYaml is considered non-scalar and gets added to a count that has a limit of 50, so if you serialize a mostly empty doublechest inventory and later try and load it, a YAMLException will be called and you'll be returned with an empty YamlConfiguration. Wondering if a constructor could be added to YamlConfiguration that accepts a Yaml object so we can make our own implementation or if the limit of 50 in LoaderOptions could be raised.

       

      https://www.javadoc.io/doc/org.yaml/snakeyaml/1.26/org/yaml/snakeyaml/LoaderOptions.html

            Unassigned Unassigned
            iThonk Thonk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: