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
- Install Ibexa DXP/eZ Platform
- Revert changes from https://github.com/advisories/GHSA-44m4-9cjp-j587
- Remove cache
- Create a new CT with ezimage
- Create a new Content and add an image with spaces into filename and Publish
- Create a new draft with a new image with spaces into filename and Save
- Create again a new draft with a new image with spaces into filename and Save
- Revert changes from 2 and clear cache
- Run php bin/console ibexa:images:normalize-paths and remove cache
- 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