isActiveStorageContext() fails in 9.5.x

Created on 1 May 2023, over 1 year ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

Since Drupal 9.5.x, the dynamic _serviceId property is no longer available on container objects β†’ . This has implications for isActiveStorageContext() in ConfigNormalizerBase, which uses _serviceId to detect the active configuration.

Steps to reproduce

  • Set to Full Reset sync mode
  • View pending configuration changes (via config_sync etc)
  • Note that for most configuration, uuid is shown as a configuration change to be removed (this is generally normalized out)

Proposed resolution

9.5.x introduced some new methods that do not rely on checking _serviceId:

When these changes were introduced perhaps has some considerations for backwards compatibility of any proposed change to config_normalizer. Perhaps some introspection via hasService and method_exists can be done.

Remaining tasks

Refactor to use new service mapping methods.

User interface changes

None

API changes

Potentially none

Data model changes

None

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Normalizer plugins

Created by

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

Comments & Activities

Production build 0.71.5 2024