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

Image normlization path command does not take into consideration the var directory name normalization

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request, 4.6.0, 4.5.5, 3.3.37
    • 4.5, 3.3.35
    • None
    • None
    • Yes

    Description

      Whe have introduce this Imae normalizations for any reasons, see here: https://developers.ibexa.co/security-advisories/ibexa-sa-2022-001-image-filenames-sanitization

      For sanitazing filenames, there is a limitation. When the var directory name contains unicode character, the command leads to a Corrupted path error message.

       

      Steps to reproduce:

      Install clean DXP , let say v3

      Edit config/packagesezplatform.yaml and add a folder to var/site like 

      var/site/myspecialcharacter

       where myspecialtword  contains some unicode characters

      Create a new folder

      create  a new image below it

      run the normalization path command:

       

       

      php bin/console ibexa:images:normalize-paths

      Yo will get a corrupted path error:

       

       

      In CorruptedPathDetected.php line 15:
        Corrupted path detected: var/site/myspecialcharacter/storage/images/0/8/2/0/280-1-eng-GB/29975fc2f920-IMG_9755.JPG
      

       

      Expected result:

      The command should be working

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              lionel.akpagni@ibexa.co Lionel Akpagni
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: