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

Freemarker.runtime errors are not rendered in edit mode when info.magnolia.freemarker.ModeDependentTemplateExceptionHandler is not used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Neutral
    • None
    • None
    • None
    • None
    • Basel 96
    • 1

    Description

      info.magnolia.freemarker.ModeDependentTemplateExceptionHandler was deprecated and replaced by info.magnolia.rendering.engine.ModeDependentRenderExceptionHandler.

      info.magnolia.rendering.engine.RenderExceptionHandler is not triggered for freemarker.runtime errors, because freemarker.template.Template class doesn't throw the runtime exceptions, so we can't catch them in info.magnolia.rendering.renderer.FreemarkerRenderer#onRender method (same way as we are doing for freemarker.template.TemplateException and java.io.IOException) and rethrow the errors as info.magnolia.rendering.engine.RenderException.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                mdivilek Milan Divilek
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD