Drupal Release: 10.4.1
Tag Name: 10.4.1
Release Date: 1/6/2025
DrupalHighly flexible, open-source content management system known for complex, scalable web applications. Preferred by government, educational, and large enterprise websites requiring advanced customization and security features. Robust module ecosystem.
TL;DR
Drupal 10.4.1: Bug Fix and Stability Release
This minor release addresses several critical bugs and stability issues in Drupal 10.4.0. Key improvements include fixing a fatal error in the ThemeHandler, resolving issues with the status report email validation, addressing random test failures, and enhancing security by properly handling non-existent batch IDs with 404 responses. This maintenance release focuses on stability rather than introducing new features.
Highlight of the Release
- Fixed a critical fatal error in ThemeHandler that could break site functionality
- Resolved status report confusion between null and duplicate email addresses
- Improved security by properly handling non-existent batch IDs with 404 responses
- Fixed Navigation Top Bar hiding entity local tasks incorrectly
- Enhanced cache handling in ChainedFast backend to prevent invalid items being written
Migration Guide
No migration steps are required for this minor release. Drupal 10.4.1 is a bug fix release that maintains compatibility with Drupal 10.4.0 and does not introduce any breaking changes or require special migration procedures.
Upgrade Recommendations
Priority: High
All sites running Drupal 10.4.0 should upgrade to 10.4.1 as soon as possible to address the critical bugs fixed in this release, particularly:
- The fatal error in ThemeHandler that could break site functionality
- Status report email validation issues
- Cache handling improvements in ChainedFast backend
The upgrade process should be straightforward as this is a minor release with no breaking changes. Follow standard Drupal update procedures:
- Back up your database and files
- Put your site in maintenance mode
- Update Drupal core using Composer:
composer update drupal/core-recommended --with-all-dependencies - Run database updates:
drush updatedbor visit/update.php - Clear caches:
drush cache:rebuildor clear via the admin interface - Take your site out of maintenance mode
Bug Fixes
Critical Bug Fixes
-
Fatal Error in ThemeHandler: Fixed a critical issue where
ThemeHandler::addTheme()was causing fatal errors that could break site functionality (#3478628). -
Status Report Email Validation: Resolved an issue where the status report was confusing null email addresses with duplicate emails, leading to incorrect diagnostics (#3488835).
-
Navigation Top Bar Issues: Fixed a bug where the Navigation Top Bar was hiding entity local tasks even when users had no access to the bar (#3444745).
-
Cache Backend Improvements: Ensured invalid items are not written to FastBackend in ChainedFast, preventing potential cache corruption (#3395212).
-
Batch Processing Security: Implemented proper 404 responses when a Batch ID doesn't exist, improving security and user experience (#1986330).
Test Stability Improvements
- Fixed random test failures in:
- ImageStylesPathAndUrlTest (#3487371)
- LayoutBuilderBlocksTest::testBlockPlaceholder (#3477586)
- EditorSecurityTest::testEditorXssFilterOverride (#3496405)
- LayoutSectionTest::testLayoutSectionFormatterAccess (#3496259)
Other Fixes
- Fixed type hints in BlockLibraryController to properly reference interfaces (#3487586)
- Addressed an issue with the isAdminPath validator in symfony/http-foundation (#3491543)
- Improved documentation for EntityStorageInterface::loadMultiple() regarding invalid IDs (#3484587)
New Features
No new features were introduced in this minor release. Drupal 10.4.1 is primarily a bug fix and stability release that addresses issues found in Drupal 10.4.0.
Security Updates
Security Improvements
-
Proper 404 Responses for Invalid Batch IDs: Implemented proper 404 HTTP responses when a Batch ID doesn't exist (issue #1986330). This is a security improvement that prevents information disclosure and follows best practices for handling non-existent resources.
-
Cache Backend Security: The fix ensuring invalid items are not written to FastBackend in ChainedFast (issue #3395212) helps prevent potential cache poisoning scenarios.
Performance Improvements
-
Enhanced Cache Handling: The fix for ChainedFast backend (issue #3395212) prevents invalid items from being written to the cache, which can improve cache performance and reduce unnecessary processing.
-
Improved Breadcrumb Handling: Fixed an issue where BreadcrumbManager was ignoring cacheability when no builders apply, potentially improving rendering performance (though this fix was later reverted).
-
Refactored Dialog Stylesheet: The refactoring of Claro's dialog stylesheet (issue #3303546) may result in more efficient CSS processing and rendering.
Impact Summary
Drupal 10.4.1 is a maintenance release that addresses several critical bugs and stability issues found in Drupal 10.4.0. The most significant impact comes from fixing a fatal error in the ThemeHandler that could break site functionality, resolving status report email validation issues, and improving cache handling in the ChainedFast backend.
This release also enhances security by implementing proper 404 responses for non-existent batch IDs and fixes several random test failures that improve the overall stability of the platform. The Navigation Top Bar fix ensures that entity local tasks are properly displayed to users who should have access to them.
For developers, the release provides better documentation for EntityStorageInterface behavior and improves type hinting in various components. Theme developers will benefit from the refactored Claro dialog stylesheet.
While this release doesn't introduce new features, it significantly improves the stability, security, and reliability of Drupal 10.4.x, making it an important update for all Drupal 10.4.0 sites.
Statistics:
User Affected:
- Fixed status report confusion between null and duplicate emails, improving system diagnostics
- Resolved fatal error in ThemeHandler that could affect theme management
- Improved security with proper 404 responses for non-existent batch operations
