Skip to content

The requested store cannot be found caused Validate Hash from Store Switcher get false even the hash equal with signature and input hashData #33042

Open
@tuyennn

Description

@tuyennn

Preconditions (*)

  1. Magento 2.4.x
  2. Create 2 stores view

Steps to reproduce (*)

  1. Try to switch Stores from Frontend or you could call it language switcher user interface not admin side.
  2. In specific condition the response time of the site could be more than 5s on load(API on load, or slow connection)

Expected result (*)

  1. Target store could be switched and no error found

Actual result (*)

  1. Target store is switched but found The requested store cannot be found. Please check the request and try again.
  2. Just wonder why https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Store/Model/StoreSwitcher/HashGenerator.php#L109 the condition
time() - $timeStamp <= 5

exist for what?

  1. Possible to increase this number to 50 or a configuration as good

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Ready for Grooming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions