[MTE-150] No image variation found, will return original image Created: 10/Jul/23  Updated: 21/Nov/23

Status: Open
Project: Magnolia Templating Essentials
Component/s: imaging
Affects Version/s: 2.0.3
Fix Version/s: None

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

Issue Links:
relation
is related to MTE-153 Supplied variation [null] could not b... Open
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)
Epic Link: Support
Team: DeveloperX

 Description   

In the class ThemeAwareImageGenerator if the local variable "variation" is null the code simply prints "No image variation found, will return original image." It would be helpful to know what variation was it trying to find. In the context of support someone can give us the feedback --> "I'm seeing this in my log":

2023-07-03 10:36:11 INFO 611724557 [https-jsse-nio-8103-exec-6] [info.magnolia.templating.imaging.ThemeAwareImageGenerator] No image variation found, will return original image.   

This really doesn't help as much as it could. I propose the following changes.

Notes
Once the user knows both the theme and variation name they can search their FTL (template script) for the reported variation name (i.e. find where it's being requested) and then check their theme configuration. It's possible:

  • The theme configuration has changed.
  • There is a typo in the template script.
  • They aren't applying the correct theme to the site.

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