Core patch does not apply to 10.5

Created on 13 August 2025, about 2 months ago

Problem/Motivation

The core patch to resolve issue "#2925890 Invalid config structures can result in exceptions when saving a config entity" doesn't apply for drupal 10.5

Steps to reproduce

Update drupal core to 10.5

Proposed resolution

Either update the patch to https://www.drupal.org/files/issues/2025-08-11/2925890-84.patch or remove it from the module composer file and allow/force people to add the latest patch to their own project composer file.

I'm not sure what the right solution would be as a quick fix. A patch to remove or alter the patch that is used, won't work (I think) and right now it is blocking a drupal core update.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @r.van.doorn
  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    When using cweagans/composer-patches it is possible to ignore patches from dependencies: https://github.com/cweagans/composer-patches/tree/1.x?tab=readme-ov-file

    I'm not sure why the patch was actually added. If you will always need this patch when using this module, this might be a way to get as many people as possible on this patch, although it does introduce some headaches, as we can see here. Maybe it is better to point people to the issue in the installation instructions, instead of hoping the project has composer-patches installed (of course there is a fair chance, but not a 100% guarantee).

    Maybe for a really fancy solution, I'm not sure if there is a way to somehow "test" if the issue is resolved through code. If so, this could be done in a hook_requirement, so it is possible to point people to a bit of documentation about this.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    I did some spelunking in Git, but the patch - in some form or another - has been in the module since the first version of the code. I'd be interested to know what happens when the patch is not applied at all. Will it always break, or only sometimes? Still, I think a better solution is to solve this through documentation on the project page and in the readme (and optionally the mentioned hook_requirements, if it is possible to somehow find out of the patch has been applied or not). Depending on the outcome of the test whether the patch is essential or just recommended, the addition to the documentation could be more or less prominent.

Production build 0.71.5 2024