Skip to content
Snippets Groups Projects
Commit 71d0f87f authored by catch's avatar catch
Browse files

Issue #3103529 by mcdruid, alexpott, Chris Burge, greg.1.anderson, rfay,...

Issue #3103529 by mcdruid, alexpott, Chris Burge, greg.1.anderson, rfay, anavarre, Gábor Hojtsy: Drupal 8.8.1+ and 9 can fail to install in the web browser due to cache pollution

(cherry picked from commit 8a23417a)
parent 96e5ba80
No related branches found
No related tags found
No related merge requests found
......@@ -621,6 +621,12 @@ public function discoverServiceProviders() {
// Retrieve enabled modules and register their namespaces.
if (!isset($this->moduleList)) {
$extensions = $this->getConfigStorage()->read('core.extension');
// If core.extension configuration does not exist then the container
// cannot be dumped because Drupal is yet to be installed.
if ($extensions === FALSE) {
$this->allowDumping = FALSE;
$this->containerNeedsDumping = FALSE;
}
$this->moduleList = isset($extensions['module']) ? $extensions['module'] : [];
}
$module_filenames = $this->getModuleFileNames();
......
......@@ -54,6 +54,15 @@ protected function prepareEnvironment() {
mkdir($this->settings['settings']['config_sync_directory']->value, 0777, TRUE);
}
/**
* Visits the interactive installer.
*/
protected function visitInstaller() {
// Should redirect to the installer.
$this->drupalGet($GLOBALS['base_url']);
$this->assertSession()->addressEquals($GLOBALS['base_url'] . '/core/install.php');
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment