Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4636

AdminExceptionListener has still `ezplatform` hardcoded build name

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Customer request, 4.3.1
    • 4.3.0
    • None

    Description

      When a Twig's RuntimeException is thrown in the prod environment inside the Admin back office, an additional exception "The build "ezplatform" is not configured" will be thrown.

      Steps to reproduce
      1. Clean installation of Ibexa DXP 4.3 in "prod" environment
      2. Create a new field template templates/field_type.html.twig

       {% block ezstring_field %}
          {% apply spaceless %}
              I'll break {{ 'not a number'|format_currency('EUR') }}
          {% endapply %}
      {% endblock %}

      3. Add this configuration to config/packages/ibexa.yaml

       system:
          default:
              field_templates:
                  - { template: 'field_type.html.twig', priority: 255 }

      4. In the Admin back office open a content containing Text Line field

      Result
      Two error messages will be shown:

      Unable to format the given number as a currency in "field_type.html.twig". [in vendor/twig/intl-extra/IntlExtension.php:250] 
      The build "ezplatform" is not configured [in vendor/symfony/webpack-encore-bundle/src/Asset/EntrypointLookupCollection.php:45]

      Expected result
      Only a single error message is displayed:

       Unable to format the given number as a currency in "field_type.html.twig". [in vendor/twig/intl-extra/IntlExtension.php:250]

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.bieniek@ibexa.co Mateusz Bieniek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: