Duplicate users when importing data

Created on 19 February 2024, 7 months ago
Updated 4 March 2024, 7 months ago

Problem/Motivation

When importing data with user.mail only and no user name given the import uses ranges to calculate the next available range for the auto generated username. Example info@test.com would be username info, info@test.test.com would be info_2. At the moment that could potentially lead to Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violations.

Proposed resolution

Form data ranges we change here to a query driven approach to avoid this issues for the future.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom globexplorer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024