-
Bug
-
Resolution: Workaround exists
-
Critical
-
None
-
5.4
-
None
-
None
-
5.4 alpha, OSX, Java 7 / Java 8
-
-
Empty show more show less
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:
- Download hello-magnolia.
- 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
- caused by
-
MAGNOLIA-6169 Cleanup whitespace in yaml config files
- Closed
- is superseded by
-
MAGNOLIA-6193 YAML indent error leads to a NullPointerException in TemplateDefinitionRegistry
- Closed