Release 2.0.1 is not compatible w/ Drupal 10

Created on 21 August 2023, 10 months ago
Updated 22 August 2023, 10 months ago

Problem/Motivation

Release 2.0.1 is the default version that is installed on Drupal 10 sites, but is not compatible with Drupal 10 as src/Scanner.php uses a core method \Drupal::moduleHandler()->getImplementations() that was deprecated in Drupal 9.4 and removed in Drupal 10.

Steps to reproduce

  1. Install a fresh Drupal 10 site
  2. Install and enable clamav, eg: composer require drupal/clamav && drush en clamav
  3. Try to upload a file or document to the new site.

Proposed resolution

A fix for this has already been implemented in commits 68a19e73 and e84a7b6b and is available in release candidate 2.0.2-rc1.

However, as the release candidate is not installed by default, simply installing clamav results in a broken Drupal installation that is difficult to diagnose. For example, it took me a more than a day to figure out that the problem I was seeing was not a bug or configuration error in the Webforms module or Pantheon hosting environment. And once I discovered the problem was the clamav module, it took a while longer to discover that this problem was fixed and that I needed to explicitly install clamav 2.0.2-rc1.

This scenario can be eliminated by tagging full release 2.0.2

Remaining tasks

Tag full release 2.0.2

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States uazpbarabe

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

Comments & Activities

Production build 0.69.0 2024