Since Magento 2.2.1, certain variables in the configuration get resolved to their actual value #15972
Labels
Component: Config
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
Before Magento 2.2.1 (2.2.0 and 2.1.x), when you entered a variable in the configuration like
{{unsecure_base_url}}
. Magento still rendered that value as entered in the configuration field. But since Magento 2.2.1, the variable gets resolved to the actual value. And if you save that particular configuration again, it will overwrite the value in the database with the actual current value instead of still storing the variable.After git bisecting, I've identified the commit 86d46ce to have introduced the problem, more specifically, the changes in the file
app/code/Magento/Config/Block/System/Config/Form.php
are responsible for this problem. I also see that part of the above commit was reverted again in 6c9a8b2, but it wasn't fully restored to how it used to be./cc @viktym: since you were involved in those commits, you might have an idea of what we need to do to fix this issue? Thanks!
Preconditions
Steps to reproduce
{{unsecure_base_url}}media/
in "Base URL for User Media Files" and{{secure_base_url}}media/
in "Secure Base URL for User Media Files"Expected result
{{unsecure_base_url}}media/
{{secure_base_url}}media/
{{unsecure_base_url}}media/
&{{secure_base_url}}media/
{{unsecure_base_url}}media/
&{{secure_base_url}}media/
Actual result
http://example.com/media/
https://example.com/media/
{{unsecure_base_url}}media/
&{{secure_base_url}}media/
http://example.com/media/
&https://example.com/media/
The text was updated successfully, but these errors were encountered: