magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.47k stars 9.28k forks source link

Redirect loop when URL have uppercase #38538

Open rogerdz opened 6 months ago

rogerdz commented 6 months ago

Preconditions and environment

Steps to reproduce

  1. Run: php bin/magento con:set web/secure/base_url https://Magento2.test/ ( or change Secure Base URL value in admin)
  2. Clean cache: php bin/magento cache:clean
  3. Go to homepage

Expected result

URL should convert to lowercase

Actual result

Redirect loop image

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 6 months ago

Hi @rogerdz. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 6 months ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 5 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash, here is your Magento Instance: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering Admin access: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering/admin_ef18 Login: 05f6b14c Password: f19af5274552

engcom-Dash commented 5 months ago

Hi @rogerdz

Thanks for reporting and collaboration.

Verified the issue in magento 2.4 dev instance and the issue is not reproducable.

Steps to reproduce:

1.Run: php bin/magento con:set web/secure/base_url https://magento2.test/ ( or change Secure Base URL value in admin) 2.Clean cache: php bin/magento cache:clean 3.Go to homepage

The URL is converted to lower case.

Please check the attached screen recording and let us know if we missed anything.

https://github.com/magento/magento2/assets/60198592/11b0307e-8517-4725-b9ed-801c8e7bcd6f

rogerdz commented 5 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 5 months ago

Hi @rogerdz. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 5 months ago

Hi @rogerdz, here is your Magento Instance: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering Admin access: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering/admin_110a Login: 7230be49 Password: e96e38aa6564

rogerdz commented 5 months ago

Hi @rogerdz, here is your Magento Instance: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering Admin access: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering/admin_110a Login: 7230be49 Password: e96e38aa6564

Hi @engcom-Dash , I still duplicate in demo instance, changed url to https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-PROD.magento-community.engineering => redirect loop image image

engcom-Dash commented 5 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash, here is your Magento Instance: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering Admin access: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering/admin_a75c Login: 705b57e7 Password: a1e9bf4c1174

engcom-Dash commented 5 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 5 months ago

Hi @engcom-Dash, here is your Magento Instance: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering Admin access: https://8f2d1bd3711c2d5ff39fdba38952ed3a.instances-prod.magento-community.engineering/admin_85c6 Login: b0a78301 Password: 60fd869b313f

engcom-Dash commented 5 months ago

Hi @rogerdz

Thanks for reporting and collaboration.

Verified the issue on Magento 2.4 dev instance and the issue is reproducible.

Steps to reproduce 1.Run: php bin/magento con: set web/secure/base_url https://magento2.test/ ( or change Secure Base URL value in admin) 2.Clean cache: php bin/magento cache: clean 3.Go to homepage

When the URL has uppercase letters the redirect is not working properly.

Please refer to the screenshots attached

Screenshot 2024-04-01 at 2 15 47 PM Screenshot 2024-04-01 at 2 12 04 PM
github-jira-sync-bot commented 5 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11718 is successfully created for this GitHub issue.

m2-assistant[bot] commented 5 months ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.