View Issue Details

IDProjectCategoryView StatusLast Update
0007241OXID eShop (all versions)4. ------ eShop Core -------public2021-07-01 15:33
Reportermario_lorenz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version6.3.0 
Fixed in Version6.3.1 
Summary0007241: cli: apply-configuration fails with environment.yaml and modules without moduleSettings
DescriptionHere is discribed how Module configuration deployment works:

https://docs.oxid-esales.com/developer/en/6.3/development/modules_components_themes/project/module_configuration/modules_configuration_deployment.html

I´ve a OXID-Module without moduleSettings. In the configuration (\var\configuration\shops\1.yaml), the module has no data for moduleSettings. And also no empty moduleSettings.

I copied the module-Section into \var\configuration\environment\1.yml, change something (no extension of the moduleSettings).
After this i run: apply-configuration

I´ve got an breakable error because in the script (line 51 etc) ...
\vendor\oxid-esales\oxideshop-ce\source\Internal\Framework\Module\Configuration\Dao\ShopEnvironmentConfigurationExtender.php
... there is no check, if moduleSettings exists or not.
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

QA

2021-05-20 14:36

administrator   ~0013444

Hi mario_lorenz,

I have reproduced this behavior.
I see two solutions here: Either adapting the documentation to declare the key "moduleSettings" as mandatory or adding a check if the key is set or not: https://github.com/OXID-eSales/oxideshop_ce/pull/868

Greetings!
Michael

-MK