Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-593

Freemarker Error with OnAir-DAM control when corresponding metadata-uuid is missing -> STKUtil does not return 'null' to freemarker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.2
    • 1.2.3, 1.3
    • None
    • None

    Description

      General info:
      All available Assets from media browser have a corresponding meta-data node in the data module.
      They correspond by their UUID.

      Error setup:

      • Selecting a image with the OnAir DAM control
      • Corresponding meta-data node is missing in data module
        -> feemarker error

      Call from Freemarker template:
      assign image = imageModel.image!

      Source of the problem:

      • In class 'STKUtil.java '
      • In method 'public static Asset getAsset(Content content, String nodeDataName, String variationName)'
        In case of the catched 'catch(DAMException e){' null is not returned to the freemarker template.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ochytil Ondrej Chytil
                cringele Christian Ringele
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: