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
-
Create a website with code
wb2
. -
Create a store
st2
and assign it to thewb2
website. -
Create a store view with code
sv2
and assign to the new store. -
Create product and assign only to
wb2
website. -
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.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 7
- Comments: 31 (6 by maintainers)
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