Bug #47776

Configuration is no longer correctly Merged from the various Packages

Added by Benno Weinzierl over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Configuration
Start date:
2013-05-01
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

I Noticed that since some recent change my policy yaml is completely empty. Some other Configuration Parts are missing also.

After some debugging i found out that this is due to a bug in the ConfigurationManager (Around Line 382). The configuration gets merged package by package with Arrays::arrayMergeRecursiveOverrule() which has $emptyValuesOverride = TRUE per default.

foreach ($packages as $package) {
                    $this->configurations[$configurationType] = Arrays::arrayMergeRecursiveOverrule($this->configurations[$configurationType], $this->loadPolicyConfigurationFile($package->getConfigurationPath() . $configurationType, $package), FALSE, FALSE);
                }

The Flag $emptyValuesOverride = TRUE leads to My Policy configuration beeing overwritten by later merged packages.

Also available in: Atom PDF