Config is not storing key module dependencies correctly

Created on 11 March 2023, almost 2 years ago
Updated 4 May 2023, over 1 year ago

We recently noticed that our config sync was failing on the OAuth keys:

The configuration cannot be imported because it failed validation for the following reasons:

  • Configuration oauth2_client.oauth2_client.ecampus depends on the veracross_oauth configuration that will not exist after import.
  • Configuration oauth2_client.oauth2_client.fof depends on the veracross_oauth configuration that will not exist after import.
  • Configuration oauth2_client.oauth2_client.transportation depends on the veracross_oauth configuration that will not exist after import.
  • Configuration oauth2_client.oauth2_client.veracross_oauth depends on the veracross_oauth configuration that will not exist after import.

Digging deeper, it looks like this key:

langcode: en
status: true
dependencies:
  config:
    - veracross_oauth   <--------
  module:
    - veracross_oauth
id: veracross_oauth
label: Veracross
description: ''
oauth2_client_plugin_id: veracross_oauth
credential_provider: key
credential_storage_key: veracross_oauth

should be this:

langcode: en
status: true
dependencies:
  config:
    - key.key.veracross_oauth   <--------
  module:
    - veracross_oauth
id: veracross_oauth
label: Veracross
description: ''
oauth2_client_plugin_id: veracross_oauth
credential_provider: key
credential_storage_key: veracross_oauth
πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zerbash

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

Comments & Activities

Production build 0.71.5 2024