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

'ibexa:images:normalize-paths' command stops when image file is missing

    XMLWordPrintable

Details

    • eZ Platform, Ibexa Content

    Description

      Steps to reproduce:

      1. Comment out the following lines https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/IO/FilePathNormalizer/Flysystem.php#L29-L36.
      2. Create two new Images with the names: class ' .jpg, test%20.jpg.
      3. Edit the first image and upload a new image instead of an old one.
      4. Search for the class '.jpg file in web/var/site/storage/images directory and change its name to class 'test.jpg.
      5. Run the https://doc.ibexa.co/en/3.3/guide/images/#normalize-image-file-names command.

      Result:
      Command finishes without changing the rest of the files because the single file could not be found. Ideally, this shouldn't happen but this should be handled nevertheless.

      Expected result:
      Command skips the missing file and continues.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bartlomiej.wajda@ibexa.co Bartłomiej Wajda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: