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

content2bean: make sure that the force creation flag is respected

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD