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

The command ibexa:images:normalize-paths not working correctly with all versions content

    XMLWordPrintable

Details

    Description

      Not all versions are taken into account when running the command, especially if we have a draft of a published version

       

      Steps to reproduce

      1. Install Ibexa DXP/eZ Platform
      2. Revert changes from https://github.com/advisories/GHSA-44m4-9cjp-j587
      3. Remove cache
      4. Create a new CT with ezimage
      5. Create a new Content and add an image with spaces into filename and Publish
      6. Create a new draft with a new image with spaces into filename and Save
      7. Create again a new draft with a new image with spaces into filename and Save
      8.  Revert changes from 2 and clear cache
      9. Run php bin/console ibexa:images:normalize-paths and remove cache
      10. Check Content with images.

       

      Result

      Published version or draft version don't have an image 

      Expected result

      All draft and published content should have images with normalized paths

       

      Note

      I noticed randomness in which version will have the correct path to the image, i.e. once it is one of the draft versions and once it is the published version

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: