Closed
Description
Preconditions (*)
- Magento v2.3.3
- Magento 2.4-develop
Steps to reproduce (*)
- Setup stores/store-groups/websites with uppercase scope codes via setup script.
- Try to use to show configuration for this store via console.
=> bin/magento config:show --scope=store --scope-code=de_AT
Expected result (*)
- Output of store configuration
Actual result (*)
- Output of error message:
"The scope code can include only lowercase letters (a-z), numbers (0-9) and underscores (_). Also, the first character must be a letter."
Similar report: #11996
This report resulted in adjustment of the error message because the former reporter had no good reason.
One good reason why it should be possible to use uppercase letters in store code, is to differentiate regions in store code. Especially for using storecodes within url.
So you could use at least 'de_DE', 'de_AT', 'en_US' or 'en_UK' as store codes, which is very useful in urls.
To be RFC 4646 (https://tools.ietf.org/html/rfc4646) conform, there has to be the possibility to use hyphens for store codes, too.
Surely it would be possible to do something weird by having this possibility, but that lies in the responsibility of the projects lead.
Additonal information:
See comment
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.3 releaseAffects non-critical data or functionality and does not force users to employ a workaround.
Type
Projects
Status
Done