Closed
Description
Preconditions (*)
- Magento 2.4.2
- PHP 7.4
- Activated S3 storage adapter in Magento
Steps to reproduce (*)
- Export the tablerates.csv in Backend
- Import the exported tablerates.csv in Backend
Expected result (*)
- Uploaded tablesrates.csv file is processed.
Actual result (*)
- File "https://[bucket].s3.eu-central-1.amazonaws.com/[prefix]/tmp/phpLjGmHf" not found.
Details
It seems there is a problem with the "uploadAndImport" method in "/app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate.php".
It gets the path of the uploaded file from the $_FILES global variable and passes it to "$this->filesystem->getDirectoryReadByPath($dirName)" in the "getCsvFile" method.
Since the S3 storage adapter is active, this call is returning a location on the S3 bucket but the file is not existing there.
The file exists on the local filesystem located in the path defined by the PHP var "upload_tmp_dir".
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- 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”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done