Config schema for chroot does not match usage

Created on 16 January 2025, about 2 months ago

Problem/Motivation

The `chroot` config setting is defined as string but used as an array. Although this does not generate errors during a fresh Drupal install, it is causing errors during tests for the Printable module. Marking this as "major" because it is blocking a working Drupal 11 release of the Printable module.

Example errors from the Printable module pipeline:

There were 2 errors:
1) Drupal\printable\Tests\PrintablePdfFormTest::testPdfFormWorks
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for pdf_api.dom_pdf.settings with the following errors: pdf_api.dom_pdf.settings:chroot.0 missing schema
/builds/project/printable/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:98
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:246
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:206
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:56
/builds/project/printable/web/core/lib/Drupal/Core/Config/Config.php:230
/builds/project/printable/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:396
/builds/project/printable/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:149
/builds/project/printable/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/builds/project/printable/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:322
/builds/project/printable/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/builds/project/printable/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:500
/builds/project/printable/web/core/tests/Drupal/Tests/BrowserTestBase.php:554
/builds/project/printable/web/core/tests/Drupal/Tests/BrowserTestBase.php:363
/builds/project/printable/src/Tests/PrintablePdfFormTest.php:39
2) Drupal\printable\Tests\PrintablePdfTest::testCustomPageExists
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for pdf_api.dom_pdf.settings with the following errors: pdf_api.dom_pdf.settings:chroot.0 missing schema
/builds/project/printable/web/core/lib/Drupal/Core/Config/Development/ConfigSchemaChecker.php:98
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:246
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:206
/builds/project/printable/vendor/symfony/event-dispatcher/EventDispatcher.php:56
/builds/project/printable/web/core/lib/Drupal/Core/Config/Config.php:230
/builds/project/printable/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:396
/builds/project/printable/web/core/lib/Drupal/Core/Config/ConfigInstaller.php:149
/builds/project/printable/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php:75
/builds/project/printable/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php:322
/builds/project/printable/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php:83
/builds/project/printable/web/core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php:500
/builds/project/printable/web/core/tests/Drupal/Tests/BrowserTestBase.php:554
/builds/project/printable/web/core/tests/Drupal/Tests/BrowserTestBase.php:363
/builds/project/printable/web/core/modules/node/tests/src/Functional/NodeTestBase.php:33
/builds/project/printable/src/Tests/PrintablePdfTest.php:46

Steps to reproduce

  1. Install pdf_api and printable.
  2. Run PHPUnit tests for printable.

Proposed resolution

Update the config schema to make chroot a sequence instead of a string.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States byrond

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024