Description
Steps to reproduce on the platform versions containing the https://developers.ibexa.co/security-advisories/ibexa-sa-2022-001-image-filenames-sanitization fix:
- Create multi repository setup with 2 admin site accesses: https://doc.ibexa.co/en/2.5/guide/config_repository/#content-repository-configuration, remember about setting the proper var/dir and cache_service_name parameters for each site access (https://doc.ibexa.co/en/2.5/guide/persistence_cache/#multi-repository-setup).
- Comment out the following lines https://github.com/ezsystems/ezpublish-kernel/blob/7.5/eZ/Publish/Core/IO/FilePathNormalizer/Flysystem.php#L29-L36.
- Upload file with the following name: image%20 .jpg in two repositories.
- Images are not visible in each site access.
- Uncomment the commented lines.
- Run the https://doc.ibexa.co/en/2.5/guide/images/#normalizing-images command with --siteaccess=admin2 (or other that uses second repository).
Result:
Filenames were not changed in the second repository when using --siteaccess=admin2 option.
Expected result:
Filenames should be changed in the second repository when using --siteaccess=admin2 option.
Note:
The issue doesn't occur in v2.5.