Closed
Description
Preconditions (*)
- Magento 2.4-develop
- Create module
Vendor_Module
- Create
etc/config.xml
in created moduleVendor_Module
with new config pathdefault/vendor_module/general/value
with value0
or''
(empty string)
Steps to reproduce (*)
- Open magento cli and run command
./bin/magento config:show vendor_module/general/value
Expected result (*)
- Should return
0
or''
(empty string)
Actual result (*)
- Command returns
Configuration for path: "vendor_module/general/value" doesn't exist
I think it happens because there <magento_root>/vendor/magento/module-config/Console/Command/ConfigShowCommand.php:153
magento checks if value is empty and if it actualy is the error message is shown. But empty value does not mean that path does not exist. So we should check if path exist in different method.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentNo current plan to fix. Fixing can be deferred as a logical part of more important work.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.