Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15403

YAML size limit issues due to snakeyaml 1.33

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.7.13, 15.2.2
    • 13.4.23, 14.7.14, 15.2.3
    • None
    • None
    • 3
    • Flagged
    • Orion
    • Orion.Cycle3.Sprint1
    • Undetermined

    Description

      Issue Description:

      On Upgrading to 14.7.13, latest 15 versions there is an exception on deploy, which is related to org.yaml/snakeyaml upgrade

      Caused by: org.yaml.snakeyaml.error.YAMLException: The incoming YAML document exceeds the limit: 3145728 code points
      

       

      Issue Analysis:

      This is caused due to snakeyaml being upgraded to v1.33 in the newer versions due to security issues.

      Since v1.32 of snakeyaml, the max size for yaml was decreased to 3MB: https://bitbucket.org/snakeyaml/snakeyaml/commits/440d98e2ebd586aafd9034fc74a2a47c656eb0ce

       

      Current workaround:

      Manually splitting YAML from one big parent to multiple smaller files

       

      Expected Resolution:

      We need to either relax the limit or have a documentation to explain the the problem and the workaround (or both).

      Attachments

        Activity

          People

            jhoffman Jeroen Hoffman
            rsinha Richa Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: