'filter.format.' . WebformHtmlEditor::DEFAULT_FILTER_FORMAT missing UUID

Created on 23 June 2023, about 1 year ago
Updated 11 October 2023, 11 months ago

Problem/Motivation

We support a Drupal distribution with installation from existing config. This generally works well, except when contrib modules do odd things that break our tests. We're running into just such an issue right now where a sequence of events happens that isn't expected.

  1. webform_install()
  2. _webform_update_html_editor()
  3. manually insert filter.format.webform_default (missing UUID)

StorageComparer::addChangelistUpdate compares uuid values and blows up a non existent uuid array key in the $target_data. Adding a null uuid in the optional config solves this. Leaving things with no uuid at all in the optional config, leads to PHP 8.1 complaining about passing a NULL uuid value to mb_strtolower in ConfigEntityBase and Entity\Query\Condition::compile()

Proposed resolution

Add a null uuid to the optional format configuration.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

6.2

Component

Code

Created by

heddn Nicaragua

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

Comments & Activities

Production build 0.71.5 2024