Skip to content

Errors in the exception.log file when importing products with images. #30978

Open
@soleksii

Description

@soleksii

Preconditions (*)

  1. Magento 2.4-develop
  2. Php 7.4
  3. Mysql v 8.0

Steps to reproduce (*)

  1. Create Simple product with image;
  2. Go to Admin -> System -> Export;
  3. Select Products from the Entity Type dropdown and click on the Continue button;
  4. Run php bin/magento cron:run and download exported file;
  5. Open the file and make any changes ( change name for example);
  6. Save file;
  7. Go to Admin -> System -> Import;
  8. Fill all required fields;

Screenshot from 2020-11-18 22-29-22

  1. Select edited before File to Import and click on the Check Data button;
    ✔️ File is valid!
    Screenshot from 2020-11-18 22-32-11

  2. Click on the Import button
    ✔️ The product was successfully updated

  3. Go to var/log/exception.log file

Expected Result:

No errors in the exception.log file if the path is present in the file system.
If the file doesn't exist, the user should have a warning/error on the importer (admin panel) highlighting the problem.

Actual Result:

File 'var/import/images//t/e/test.jpg' was not found or has read restriction.

[2020-11-18 20:33:09] main.CRITICAL: File 'var/import/images//t/e/test.jpg' was not found or has read restriction. {"exception":"[object] (Magento\\Framework\\Exception\\LocalizedException(code: 0): File 'var/import/images//t/e/test.jpg' was not found or has read restriction. at /var/www/html/magento24/app/code/Magento/CatalogImportExport/Model/Import/Uploader.php:293)"} []

The user has not received or seen any errors on the importer.


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

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions