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

Map2BeanTransformer calls initBean() too early – before properties are set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.5
    • None
    • None
    • None
    • Basel 67
    • 1

      Some beans require all properties of a definition to be set in order to act on specific values in their init() method, see for example info.magnolia.templating.imaging.variation.SimpleResizeVariation which sets two different image operations depending on the configured properties.

      In the current Map2BeanTransformer implementation we call #initBean() directly after creating a new instance of target type, which is too early.

      We should instead call #initBean() after the bean is processed.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD