[MGNLDAM-1249] damLinkField preview applies 240 variation which can lead to warnings Created: 12/Sep/23  Updated: 13/Sep/23

Status: Open
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 3.0.25
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File choose-dialog.png    
Issue Links:
relation
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
Epic Link: AuthorX Support
Team: AuthorX

 Description   

The damLinkField applies a 240 variation for the preview. However, if a 240 variation is not present in the theme then this leads to warning in the log.

2023-09-12 12:36:16,330 WARN  ia.templating.imaging.VariationAwareImagingSupport: Supplied variation [240] could not be found. Please update your configuration.

Reproduce

  • Edit the file travel-demo-theme.yaml to remove the 240 variation. This can be done as a hotfix here.
  • Open the page /travel/about
  • Add a Link List component
  • Add a Link component and switch to the Image tab
  • Click "Select new" and select a image
  • Check the log for the warning mentioned above

Expected
There shouldn't be any warning.

Actual
Warning is produced regarding the missing variation.

Notes

  • Even if the variation cannot be applied the result still looks fine as the front end enforces a 240 height.
  • When the variation is applied the image looks blurry because of MGNLIMG-196
  • I would propose we simply remove the line where the variation is applied in damLinkField.

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