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

LinkUtil / FreeMarker Error with missing UUID links

XMLWordPrintable

      The current implementation of Link-Conversion cannot handle missing UUID links within rich-text fields.

      When rendering paragraphs, the error simply causes the entire content of the rich-text field not to display at all.

      When checking for existence (myfield??), an exception thrown by LinkUtil breaks template processing completely, resulting in a blank page.

      This is a big problem for anyone using fckeditor...

      Expected behaviour: render the link as "#", which will produce a dead link, but at least generate the normal output for the rest of the page.

      To reproduce the problem:

      Create a template which renders content from an fckEditor input.
      Create a new image in DMS.
      Create a page with your template, and insert the DMS-image in the FCKEditor content area.
      Save the page, everything should display as expected.
      Now go to DMS, and delete the image.
      Reload the page, and your fckEditor field will not display.
      Now insert a test for existence in the template (myeditorfield??).
      Reload the page, and nothing will display (blank page).
      Check the console or debug log, and you will see the exception.

        Acceptance criteria

              fgrilli Federico Grilli
              runger Richard Unger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD