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

YAML indent error leads to a NullPointerException in TemplateDefinitionRegistry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Neutral Neutral
    • None
    • 5.4
    • None
    • None
    • Magnolia 5.4 M6, Mac OS X 10.10.2 (x86_64), Java 1.7.0_79, templating-essentials-models 1.0.0-m1

      Wrong indentation in a YAML page template definition leads to a NullPointerException in TemplateDefinitionRegistry.

      YAML file with indent error on lines 11-14:

      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
      

      Error log: http://pastebin.com/CSbSDFJZ

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: