[MGNLSTK-593] Freemarker Error with OnAir-DAM control when corresponding metadata-uuid is missing -> STKUtil does not return 'null' to freemarker Created: 10/Mar/10  Updated: 23/Jan/13  Resolved: 08/Jul/10

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.2.3, 1.3
Fix Version/s: 1.3.2

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File FreemarkerError_OnAir_Image.txt    
Issue Links:
relation
is related to MGNLSTK-637 STKUtil does not return 'null' to fre... Closed
Template:
Acceptance criteria:
Empty

 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.


 Comments   
Comment by Christian Ringele [ 11/Mar/10 ]

Same error occurs on pages where OnAir image is used, when OnAir DAM handler is deactivated.

Generated at Mon Feb 12 13:39:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.