This repository was archived by the owner on Apr 29, 2019. It is now read-only.
This repository was archived by the owner on Apr 29, 2019. It is now read-only.
[MAGETWO-1802] Import of file with spaces in required attributes is allowed #30
Closed
Description
From @piotrekkaminski on November 2, 2017 20:31
In case empty values (spaces) are specified for required attributes in import file (example: first name and last name), there is no validation error and import is done successfully. Though it's not possible to create a customer with empty first name and last name via admin interface.
Test data
_website | firstname | group_id | lastname | |
---|---|---|---|---|
[email protected] | base | 1 |
Preconditions
- Version 2.0
Steps to reproduce
- Open Backend -> System -> Import/Export -> Import
- Select Entity Type: Customers
- Select Import Behaviour: Append Complex Data
- Select Import Format Version: Magento 1.7 format
- Select test file
- Click Check Data button.
Expected result
validation error, messages "Required attribute 'firstname' has an empty value in rows: 1" and "Required attribute 'lastname' has an empty value in rows: 1" are shown
Actual result
validation successful, message "File is valid! To start import process press "Import" button" is shown
Note
The same issue exists for Magento 2.0 import format
Copied from original issue: magento/magento2#11975