-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento installation process disregards cache id_prefix settings defined in env.php (without specify settings via installer options) #22253
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 @cmacdonald-au. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @cmacdonald-au do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @cmacdonald-au. Thank you for working on this issue.
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @cmacdonald-au. Thank you for working on this issue.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Hi @cmacdonald-au. Thank you for your report and collaboration! The related internal Jira ticket The fix will be available with the upcoming |
Uh oh!
There was an error while loading. Please reload this page.
Preconditions (*)
app/etc/env.php
file that contains cache settings, (example attached, specifically anid_prefix
not based on path must be set)../bin/magento setup:install
or./bin/magento setup:install --cleanup-database
(with no other parameters specified).This behaviour appears to be a side effect of the changes introduced in #18641
Steps to reproduce (*)
Either:
app/etc/env.php
from a previously installed system and:install_date
.id_prefix
values to something not based on path.id_prefix
values to something not based on path and flush cache.Then:
./bin/magento setup:install
(use--cleanup-database
to test against a previously installed copy)app/etc/env.php
with the original and you will see the cache relatedid_prefix
values have changed.Expected result (*)
id_prefix
that was provided withinenv.php
prior to installation must be unchangedActual result (*)
id_prefix
has been replaced by the output ofMagento\Setup\Model\ConfigOptionsList\Cache::generateCachePrefix()
Supporting information
Example "starter"
env.php
file: preinstall-env.php.txtResulting diff;
Why this matters..
Our CI/CD processes manage the propagation of settings upwards and outwards. This extends to unattended installations as well as new production deployments.
All of our systems have the opportunity to share cache instances (as either cost or convenience measures) and - as per the database table prefix setting - we rely on being able to control the cache
id_prefix
settings to ensure they support the purpose they were introduced for.The text was updated successfully, but these errors were encountered: