Discovered in the CDN contrib module: #2969048: Core's DbUpdateController does not define MAINTENANCE_MODE, causes CDN module to run even for update.php β .
We still have this in the code base:
define('MAINTENANCE_MODE', 'install');
but not:
define('MAINTENANCE_MODE', 'update');
Yet much code still assumes this:
if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) {
in _drupal_maintenance_theme()
. Other examples in:
error_displayable()
user_role_permissions()
#2288665: Remove _maintenance request attribute and replace it with a maintenance mode service β did not actually address this use case, nor does the https://www.drupal.org/node/2020005 β CR cover it.
Only authorize.php
still sets it.
Fix it.
TBD
None.
None.
Closed: works as designed
10.1 β¨
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.