ConstraintEdit form should load config without overrides.

Created on 20 November 2023, about 1 year ago
Updated 7 April 2024, 10 months ago

Problem/Motivation

See πŸ› Prevent saving config entities when configuration overrides are applied Needs work , edit forms should always load config without overrides.

Steps to reproduce

Create a password length constraint with a length of 8.
Add something like this to settings.php :

$config['password_policy.password_policy.foo']['policy_constraints'][0]['character_length'] = 42;

The constraint edit form now shows a length of 42.
This is wrong before edit forms should always show the config stored in database and not overrides.
(Or it risks adding the overrides to the database.)

Proposed resolution

Load the password policy with loadOverrideFree().

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024