-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
config:show command doesn't work with partial paths in newer versions #39610
Comments
Hi @ioweb-gr. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
In Magento 2.4.7, config:show no longer works with partial paths like payment, returning "The path doesn't exist" error. In 2.3.2, it worked as expected, listing all options under the given path. Workaround: bash bash |
Hi @ioweb-gr, Thanks for your reporting and collaboration. As per this Magento devdocs https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/paths/config-reference-payment#international-paths we have to provide full path.Could you please refer the document and please let us know if you are still facing any issue. Thanks. |
Hi I don't see any reference in the provided page about config:show with Ctrl+F Just a list of configuration paths. The issue I mentioned is the different behavior between versions. In the past on 2.3.x it would work with partial paths but on 2.4.x it won't. I believe partial paths were helpful as you wouldn't need to dump the whole config and use grep to find what you need which takes more time |
Easy workaround:
|
Yes yes @devchris79 as mentioned earlier that's the current workaround, just interested in why the behavior changed from 2.3 to 2.4 |
Hi @ioweb-gr, Thanks for your update. Could you please refer this two Magento devdocs https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/cli/configuration-management/export-configuration. https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/paths/config-reference-payment#check-or-money-order-paths regarding paths and Configurations Please run bin/magento app:config:dump {config-types} as per this doc https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/cli/configuration-management/export-configuration and try to run payment path. ![]() Thanks. |
@engcom-Bravo: I don't see how @ioweb-gr: be careful with running |
Thanks @hostep I'm aware of app:config:dump and how it works. My question was about config:show which is supposed to retrieve the values of a configuration path for quick display. I'm curious why it changed how it works between 2.3 and 2.4 because ScopeConfigInterface can retrieve partial paths perfectly fine. |
Hi @ioweb-gr, Thanks for your Update. We have tried to reproduce the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots. ![]() The "payment" path doesn't exist. Verify and try again. Hence Confirming the issue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13908 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
Preconditions and environment
Steps to reproduce
Execute command
php bin/magento config:show payment
If you're in 2.3 versions like 2.3.2 this used to provide all the options under path payment
If you're in 2.4.x versions like 2.4.7 this fails with error
The "payment" path doesn't exist. Verify and try again.
Expected result
All the options under the
payment
path show up.Actual result
The "payment" path doesn't exist. Verify and try again.
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: