- Issue created by @wim leers
Discovered in
π
Configuration schema & required keys
Fixed
.
π
TypedConfigManager::_getDefinitionWithReplacements() incorrectly replaces generic definition
Fixed
introduced a regression: it introduced a bug that made TypedConfigManager
sensitive to cache pollution. In the
case of hitting the $type = "$type||$sub_type";
edge case, 2 calls to getDefinitionWithReplacements()
happen:
buildDataDefinition()
calls it WITH the $replace
parameter
getDefinition()
calls it WITHOUT the $replace
parameter
Calling getDefinition()
causes the computed type to be overwritten.
Clearing the definitions cache is a temporary work-around:
$this->getTypedDataManager()->clearCachedDefinitions();
(after calling ::getDefinition()
, to allow all subsequent typed config manager logic execution to work correctly)
Test coverage.
None.
None.
N/A
N/A
Active
11.0 π₯
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.