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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD