Skip to content
Snippets Groups Projects

Issue #3047392: "Site UUID in source storage does not match the target storage." when importing a config with empty system.site UUID

Open Issue #3047392: "Site UUID in source storage does not match the target storage." when importing a config with empty system.site UUID
All threads resolved!
Open Tavi Toporjinschi requested to merge issue/drupal-3047392:3047392-site-uuid-in into 11.x
All threads resolved!
Files
3
@@ -389,9 +389,7 @@ public function hasChanges() {
public function validateSiteUuid() {
$source = $this->sourceStorage->read('system.site');
$target = $this->targetStorage->read('system.site');
// It is possible that the storage does not contain system.site
// configuration. In such cases the site UUID cannot be valid.
return $source && $target && $source['uuid'] === $target['uuid'];
return empty($source['uuid']) || ($source && $target && $source['uuid'] === $target['uuid']);
}
/**
Loading