Bug #48898

configuration for roles fails if one of Policy.yaml files contain empty "roles array"

Added by Rafael Kähm over 6 years ago.

Status:
New
Priority:
Must have
Category:
Security
Start date:
2013-06-05
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

Description

If some package has Policy.yaml with empty roles:
like this

roles:
#  Test: []
#  this is last line of this yaml
then drains this package the array with roles empty.

\TYPO3\Flow\Configuration\ConfigurationManager::loadConfiguration() @row 382 Arrays::arrayMergeRecursiveOverrule() merges all rolles defined in all Policy.yaml files in $configurations['roles'] array.
and
Arrays::arrayMergeRecursiveOverrule() overrides per default full array with empty array.
@param boolean $emptyValuesOverride If set (which is the default), values from $secondArray will overrule if they are empty (according to PHP's empty() function)

Also available in: Atom PDF