Skip to content

Requesting products via REST API using store code in URL returns products from all stores #15461

Open
@Vossie1975

Description

@Vossie1975

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

Metadata

Metadata

Labels

Area: APIsComponent: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just CatalogIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions