Image Editor does not work with media containing special characters
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 1.2k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 433
Description
### Shopware Version
6.7.11.0
### Affected area / extension
Platform(Default)
### Actual behaviour
Relates to: https://github.com/shopware/shopware/issues/12148
The image editor fails with 'Invalid URL format' if the file name contains a special character (example: ö, ć, à, etc.) This happens both when the media originally uploaded contains a special character, and when it’s renamed to include a special character.
https://github.com/user-attachments/assets/cc29b154-e3ff-4ff4-80c1-5fc612bbfe8d
### Expected behaviour
Image Editor should permit the same characters allowed in the Media Module.
### How to reproduce
Upload or rename a media file to contain a special character (like with an accent or an umlaut).
The try to open the same file with the image editor.
Contributor guide
Research direction
Start by reproducing the failure in the Media Module's image editor with an uploaded or renamed filename containing an accent or umlaut, and compare it with a filename using ordinary characters. Trace the image editor's URL handling from that entry point; done means the editor opens media containing the same special characters accepted by the Media Module.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100