Uploaded image for project: 'Community Edition'
  1. Community Edition
  2. MGNLCE-68

Tests fixture module create /templates/components folder with wrong nodeType causing node2bean problems with template definitions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.5.1
    • 5.5
    • None
    • None

      Component templates components node has nodeType mgnl:contentNode causing Node2Bean to interpret that node as template, resulting in the following error in the problems app:

      template: test:components (from jcr at /modules/test/templates/components)
      
      Source data processing problem Property [test_jsp] not found in class [info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition], property is not assigned /
      
      Source data processing problem Property [test_ftl] not found in class [info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition], property is not assigned /
      

      Source of the problem

      The source is an erroneous NodeBuilder task which creates the components folder on the wrong level, resulting in info.magnolia.module.delta.PropertiesImportTask creating the non-existing folder with the wrong nodeType.

      Once the addNode task is "moved" inside the parent's node addNode task, the error is gone.

      How to reproduce

      Simply run the the CE bundle in manual test mode and see problems tab of definitions app: e.g. mvn clean install -P manual-tests,jetty9-standalone.

        Acceptance criteria

              pmundt Philip Mundt
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD