Open
Description
Preconditions and environment
- 2.4.*
Steps to reproduce
- Add product image with two dots (
..
) in name.
Expected result
- Cache media files should be generated
Actual result
- Cache media files are not generated
Additional information
The issue is in Magento\MediaStorage\Model\File\Storage\Request
. I'm not sure why this was implemented 9 years ago:
/**
* @param HttpRequest $request
*/
public function __construct(HttpRequest $request)
{
$this->pathInfo = str_replace('..', '', ltrim($request->getPathInfo(), '/'));
}
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.