Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6160

Wrong indentation in YAML crashes instance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Workaround exists
    • Icon: Critical Critical
    • None
    • 5.4
    • None
    • None
    • 5.4 alpha, OSX, Java 7 / Java 8

      A wrong number of spaces (indents) in a YAML template definition file crashes the Magnolia instance in 5.4-m6 (alpha) and JDK 1.8.0_25.

      To reproduce:

      1. Download hello-magnolia.
      2. In /templates/pages/hello.yaml, indent lines 11-14 two spaces too much.
      hello.yaml
      dialog: hello-magnolia:pages/helloPageProperties
      renderType: freemarker
      templateScript: /hello-magnolia/templates/pages/hello.ftl
      title: Hello template
      visible: true
      areas:
        main:
          renderType: freemarker
          #dialog:
          templateScript: /hello-magnolia/templates/areas/main.ftl
            type: list
            availableComponents:
              quotation:
                id: hello-magnolia:components/quotation
      

      The Magnolia instance crashes, Java process dies. Error in console: malloc: *** error for object 0x1209ba3b0: pointer being freed was not allocated
      Full error: http://pastebin.com/AKssucrj

        Acceptance criteria

              Unassigned Unassigned
              ahietala Antti Hietala
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD