Skip to content
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
@piotrekkaminski

Description

@piotrekkaminski

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

email _website firstname group_id lastname
[email protected] base 1

Preconditions

  1. Version 2.0

Steps to reproduce

  1. Open Backend -> System -> Import/Export -> Import
  2. Select Entity Type: Customers
  3. Select Import Behaviour: Append Complex Data
  4. Select Import Format Version: Magento 1.7 format
  5. Select test file
  6. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions