-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Missing default base config values can CRASH Escaper.php from a NULL value parameter. #39500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
misuse of API, ... When `true`, the resultant getData(..,true) call shifts the context to the specified field, expecting it to be an array. The previous Data context is replaced. In this case, the field is not an array and all of the previous data on this object now returns NULL. I don't believe loss of this, and all of the other fields was the intended behavior.
During updates, especially when modules are being removed, some configuration vestiges will cause the `bin/magento setup:upgrade` to fail here, because they are actually missing and cannot be loaded. This is primarily a convenience to the developer, … with this change the configuration vestiges are cleaned up once the `bin/magento setup:upgrade` completes. Without it, the `bin/magento setup:upgrade` fails to start.
During updates, especially when modules are being removed, some configuration vestiges will cause the `bin/magento setup:upgrade` to fail, because they are actually missing and cannot be loaded. This is primarily a convenience to the developer, … with this change the configuration vestiges, that are cleaned up once the bin/magento setup:upgrade completes are able to run to completion. Without it, the `bin/magento setup:upgrade` fails to start.
The virtual type configurations are not supposed to be self‑referential, … but if they ever are this function will spin in an infinite loop.
avoid a misconfiguration infinite loop
check not_is_null before use
Dev convenience when a removed module blocks `bin/magento setup:upgrade`
misuse of API … call with `true` deletes this object's data
|
Hi @ergohack. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
Description (*)
When the Global Default website icons are deleted, in favor of the store website icons, a NULL parameter is passed to Escaper.php and the site will crash.
Adding a sanity check avoids the crash.
Related Pull Requests
n/a
Fixed Issues (if relevant)
n/a
Manual testing scenarios (*)
./admin/system_store/index/key/…./theme/design_config/index/key/…Questions or comments
Contribution checklist (*)