Details
-
Bug
-
Resolution: Fixed
-
Medium
-
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
Issue Links
- relates to
-
IBX-1392 Image won't be rendered when uploaded file has space in the filename
- Closed