magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

StoreResolver does not read store param from url #77

Open shochdoerfer opened 6 years ago

shochdoerfer commented 6 years ago

The \Magento\Store\Model\StoreResolver determins the active store from either the defined cookie or the passed request parameter but does not take the store code from the url into account (/rest/my_store_code/V1/...).

Preconditions

  1. Tested with Magento 2.2.5 - other versions might also be affected

Steps to reproduce

  1. Pass the store code in the url to Magento
  2. Call \Magento\Store\Model\StoreResolver::getCurrentStoreId()

Expected result

  1. The method call returns the default store code as the resolver did not find the cookie in question or the url parameter.

Actual result

  1. The method call should return the id of the store defined in the url.
shochdoerfer commented 6 years ago

Source: https://github.com/magento/magento2/issues/16976

shochdoerfer commented 5 years ago

Any news on that matter? What's the expected procedure to fix this?