Skip to content

Check Data should validate gallery information #271

Closed
@barbazul

Description

@barbazul

Current implementation ignores media gallery information during data check and then, if data is invalid (i.e. a row is missing the _media_attribute value) errors might occur.

I confirmed this bug in 1.7.0.2 and could not test in magento2 due to not having a PHP < 5.4 available at the moment. I did, however check magento2 code and it looks as if it is still there since there is no validation of media gallery data furing the first step and in app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php line 1275 it blindly assigns $insertValue['attribute_id'] to $valueArr['attribute_id'] which gets passed to the database "as is" in line 1281 and raises an SQL exception if its null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions