Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.3-dev
-
None
Description
In ezimage_simple.html.twig if image_alias is empty a stack will be thrown breaking the whole page.
https://github.com/ezsystems/DemoBundle/blob/master/Resources/views/fields/ezimage_simple.html.twig?source=c#L7
When a ez_image_alias is not found an error is already logged on the server:
https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Templating/Twig/Extension/ContentExtension.php?source=c#L451
So this error should be silent on the frontend and not break the page.
The reason why the alias is not present will be fixed in another JIRA issue (EZP-22477).
Attachments
Issue Links
- relates to
-
EZP-22272 Image alias generator throws exception if original file is not present
- Closed
-
EZP-22477 Image Alias is not found on preview if not defined in admin site access
- Closed
- testing discovered
-
EZP-22471 When loading resource in non-published version mainLocationId in ContentInfo is always null
- Closed
- links to