Unable to install site with existing configuration

Created on 2 May 2025, 13 days ago

Problem/Motivation

I want to install a site with drush site-install from a exported configuration.

doing that, a fatal error stop the process when admin user is created : SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'pass' cannot be null

Steps to reproduce

- install drupal with minimal profile
- add password_policy_module and activate it
- export configuration
- try to reinstall with "drush site-install --existing-config"

Proposed resolution

in store method, we can detect this specific case by a test in the PasswordPolicy::store method.

If the user->id() is 1 and don't have a password => this case only exist when installation, do nothing

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France DrDam

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024