Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22476

DemoBundle stack thrown if image alias not found.

    XMLWordPrintable

Details

    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

        Activity

          People

            Unassigned Unassigned
            yannick.roger-obsolete@ez.no Yannick Roger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h