magento2: Requesting products via REST API using store code in URL returns products from all stores

Preconditions

  • Magento 2.4-develop;
  • Integration created;

Steps to reproduce

  1. Create a website with code wb2.

  2. Create a store st2 and assign it to the wb2 website.

  3. Create a store view with code sv2 and assign to the new store. image

  4. Create product and assign only to wb2 website. image

  5. Perform REST API GET request using the store code in the URL, eg: GET /rest/default/V1/products/?searchCriteria[currentPage]=10

Expected result

Only products assigned to the test website are returned (or no products if none assigned).

Actual result

All products in the Magento instance are returned. image

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 7
  • Comments: 31 (6 by maintainers)

Most upvoted comments

dont think this will ever be fixed. this is second time that this problem is in Magento and i have posted this more then a year ago and no response anymore in that time. Only sollution (what we are also working on nowe) is to stop using magento. We are building a new webshop now on other ecommerce software becouse of this problem.

probably not… Does not seem interesting for Magento to solve this. This bug was previously in the system and would have been resolved then. But is there again / still in it. I have now reported this almost a year ago, but not a single update since that time. Recently also other bugs found (in MSI function) but why would you still take the trouble to report it if nothing is done with it …

Any update on this ?

@Vossie1975, Sorry, I completely understand that your issue wasn’t noticed for a huge amount of time. I prefer re-opening this issue as it’s still not fixed yet.

Will this be resolved? Am still seeing this issue on 2.3.1