Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just noticed a bug in our plugin dependency removal logic, caused by inconsistent data coming from Core: it seems the inner arrays in $dependencies
in onDependencyRemoval()
will be keyed (as currently expected in our code) by config name for config/content entities, but they will just be plain, numerically indexed arrays in the case of modules and themes. Since we're currently not testing that case, it slipped through the cracks, and it's of course a bit stupid behavior by Core.
Anyways, once discovered, it's luckily easy to fix.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2645532-2--fix_module_uninstall_plugin_removal.patch | 3.51 KB | drunken monkey |
#2 | 2645532-2--fix_module_uninstall_plugin_removal--tests_only.patch | 2.59 KB | drunken monkey |
Comments
Comment #2
drunken monkeyComment #5
borisson_Comment #6
drunken monkeyThanks for reviewing!
Committed.