-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Use of --lock-env on bin/magento config:set twofactorauth/general/force_providers results in bin/magento errors #39836
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
Comments
Hi @MylesForrest. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-November. Thank you for working on this issue.
|
Hello @MylesForrest Thank you for your report and collaboration, We attempted to reproduce the issue in the latest 2.4-develop and 2.4.8 instances. We are able to reproduce the issue. Please refer to the attached screenshot. ![]() ![]() Steps to reproduce
We followed the preconditions and steps as provided and encountered the issue. Therefore, we are marking this ticket as "Issue: Confirmed." Thank You! |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-14471 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Preconditions and environment
Encountered during install and configuration of 2.4.8 (Community)
Steps to reproduce
Run
bin/magento config:set --lock-env twofactorauth/general/force_providers google
.Observe that env.php now contains:
Run
bin/magento
.Run
bin/magento
with a command specified.Expected result
bin/magento
lists commands without error.bin/magento
with a command specified does not produce an error.Actual result
bin/magento
output ends with:bin/magento
with a command specified yields:Additional information
Dug in a bit -
vendor/magento/module-two-factor-auth/Model/Provider/Engine/DuoSecurity.php
L:199 is returned the array fromenv.php
if--lock-env
was used during theconfig:set
.isDuoForcedProvider
expects astring
, not anarray
.Can be worked around by manually setting
env.php
:Haven't dug in enough yet to determine if the underlying issue is with
vendor/magento/module-config/Console/Command/ConfigSet/LockProcessor.php
orvendor/magento/module-two-factor-auth/Model/Config/Backend/ForceProviders.php
.Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: