Skip to content

[MAGETWO-1802] Import of file with spaces in required attributes is allowed #11975

Closed
@piotrekkaminski

Description

@piotrekkaminski

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions