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

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Obsolete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sprint:
      Basel 96
    • Story Points:
      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: