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

content2bean: make sure that the force creation flag is respected

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 4.0.3, 4.1.1, 4.2
    • core
    • None
    • Yes
    • Yes

      The FactoryUtil.newInstance() method throws exceptions since MAGNOLIA-2552 and does not return null anymore. To keep the same behavior in the content2bean processor if the force creation flag is set to true we have to catch the exceptions and react accordingly.

      Otherwise the filter chain fails to instantiate if one of the classes is wrongly defined (even if it is somewhere deeper in the hierarchy). This is really dangerous.

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD