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

Image Variation with an identifier starting with numbers will break the Admin UI

    XMLWordPrintable

Details

    • [4.0] - Sprint 20

    Description

      When Image Variation has an identifier starting with a number, an exception will be thrown inside Admin UI when retrieving SubItems.

      Steps to reproduce
      1. Clean installation of Ibexa DXP v3.3
      2. Create a new custom image variation:

          system:
              default:
                  image_variations:
                      50_square:
                          reference: null
                          filters:
                              geometry/scaleexact: [50, 50]
      

      3. In CLI run:

      php bin/console ibexa:graphql:generate-schema
      php bin/console cache:clear
      

      4. Login into the back office as anĀ admin user and go to "Content structure".

      Result
      A "Cannot load location" error will be displayed and in logs, there will be an exception that says:

      Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "50_square" does not.
      

      and no item will be rendered inside the "Sub-items" section.

      Expected result
      No error is presented and items in the "Sub-items" section are displayed normally.

      Designs

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: