Some forms are not readonly in 10.2+

Created on 6 June 2024, 22 days ago

Problem/Motivation

After updating to Drupal 10.2, some admin forms were no longer readonly in my production environments

Steps to reproduce

* Install config_readonly on a Drupal 10.2 site
* add the readonly flag in settings.php to always be true.
* Visit a form like admin/config/media/file-system and notice how it is editable.

Proposed resolution

I think its hitting changes from https://www.drupal.org/node/3373502 β†’ as quite a few core forms are now using RedundantEditableConfigNamesTrait https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Re...

This returns an empty array on getEditableConfigNames which is called in \Drupal\config_readonly\EventSubscriber\ReadOnlyFormSubscriber
and causes the form to incorrectly match the allowlist/whitelist

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia Jon Nunan

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

Comments & Activities

Production build 0.69.0 2024