Closed
Description
Preconditions
- Magento 2.1.4
- PHP7
Steps to reproduce
- Setup Magento to use a different url for admin through " admin/url/custom" configuration and make this url use http not https.
- Set the unsecure base url in your default configuration to https (so the whole website will be using https)
- Now you can't get into the back-end of magento anymore because of too many redirects.
Expected result
- Everything should still work correctly, front-end should be entirely using https and back-end should use http.
Actual result
- You get a server error with too many redirects.
Comments
I did some debugging on this issue and after some time I see that in function "shouldBeSecure" in class "Magento\Backend\Model\AdminPathConfig" is checking whether the default url configured is using https. While it should check whether the store with id 0 is using https if the custom admin url setting is used.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release