[MGNLSTK-637] STKUtil does not return 'null' to freemarker when DAMException is caught Created: 11/Jun/10  Updated: 23/Jan/13  Resolved: 08/Jul/10

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: base system
Affects Version/s: 1.3.1
Fix Version/s: 1.3.2

Type: Improvement 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

Issue Links:
relation
is related to MGNLSTK-566 Invalid DMS-links cause RunTimeExcept... Closed
is related to MGNLSTK-593 Freemarker Error with OnAir-DAM contr... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

STKUtil.java line 144 & 163:
When a DAMException is caught, a RuntimeException is thrown, but null is not returned.

When choosing from DMS (uuidLink Control) a folder instead an image, freemarker template does not get a 'null' as return.
This makes this case much harder to handle in the template.



 Comments   
Comment by Hans Tobler [ 02/Jul/10 ]

This issue affects all images (and other items) from dam when the link to the dam-item is changed to a wrong value.
The FreeMarker template error! is very ugly on a public-instance...

It also seems related to http://jira.magnolia-cms.com/browse/MGNLSTK-566

When have you planed to fix this issue?

Comment by Stefan Baur [ 02/Jul/10 ]

I agree. This little fix would be a nice improvement.

Comment by Jan Haderka [ 03/Jul/10 ]

Issue will be fixed in the next maintenance release.

Generated at Mon Feb 12 07:28:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.