Skip to content

Product import: Only the first additional image is validated #28236

Closed
@domeglic

Description

@domeglic

Preconditions (*)

  1. Magento 2.3.5
  2. Magento 2.4-develop

Steps to reproduce (*)

  1. Import a product with multiple additional_images set where the second image is invalid (has spaces or parentheses)
  • file contains broken path of second image /1/1/1 11*2.jpg instead of correct /1/1/111*2.jpg

import*break_add_image.csv.txt

Expected result (*)

  1. All additional images should be validated

Actual result (*)

  1. Only the first image is validated because the loop exists after the first pass
    image

This is the cause of problem: https://github.com/magento/magento2/blob/2.3.5/app/code/Magento/CatalogImportExport/Model/Import/Product/Validator/Media.php#L118
Only the first additional image gets validated because the loop has a break; at the end. It should probably just be removed.

Metadata

Metadata

Assignees

Labels

Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.3.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions