Bug #48898

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

Added by Rafael Kähm about 2 years ago.

Status:New Start date:2013-06-05
Priority:Must have Due date:
Assigned To:Christian Müller % Done:

0%

Category:Security
Target version:TYPO3 Flow Base Distribution - 2.0.1
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

Description

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

1roles:
2#  Test: []
3#  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