[MGNLDAM-653] DamFilePreviewComponent break dialog rendering when file is not available by path Created: 10/May/16  Updated: 12/Mar/21  Resolved: 12/Mar/21

Status: Closed
Project: Magnolia DAM Module
Component/s: DAM App
Affects Version/s: 2.1.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Zarko Ivanoski Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Method info.magnolia.dam.app.ui.field.DamFilePreviewComponent.refreshItem(String) throws exception when item is not available by path that break dialog rendering.

Surround info.magnolia.dam.jcr.JcrAssetProvider.getItem(String) in try catch block will fix the issue and will return null in next line.

Note that this is only problem when you link asset by path. When link by identifier is used, everything works fine.



 Comments   
Comment by Roman Kovařík [ 12/Mar/21 ]

Closing as DamFilePreviewComponent is deprecated.

Generated at Mon Feb 12 05:01:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.