No update hook for additional_trusted_composer_plugins setting

Created on 15 February 2023, over 1 year ago

Problem/Motivation

Reported #3323461-26: Hosting environment (e.g. cPanel) may add additional files (including symlinks) to the project, which breaks AU β†’ by @chike

TypeError: array_map(): Argument #2 ($array) must be of type array, null given in array_map() (line 130 of /home/project-root/public_html/modules/contrib/automatic_updates/package_manager/src/Validator/ComposerPluginsValidator.php)
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>

Line in 8.x-2.7 is

$this->additionalTrustedComposerPlugins = array_map(
      [__CLASS__, 'normalizePackageName'],
      $settings->get('additional_trusted_composer_plugins')
    );

Proposed resolution

Probably we need an update path for existing sites for additional_trusted_composer_plugins

We forget this in πŸ› Validate compliance with composer minimum stability during PreRequireEvent Fixed

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

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

Comments & Activities

Production build 0.69.0 2024