Open
Description
Magento 2.4-develop
Preconditions
I need to find all product in categories so I user a "searchCriteria" with a unique "filterGroups" and one "filter" foreach categories wanted call /V1/products resource (rest api).
In the old server with Magento 2.0 it works great, now we upgrade server and Magento if i search by more categories (or conditions) doesn't work.
Steps to reproduce
- Create some categories (two or tre)
- Create come products foreach category
- Enable a REST API token
- Make a call to resource "/V1/products" with a search parameter like this:
["searchCriteria"]=>
array(1) {
["filterGroups"]=>
array(1) {
[1]=>
array(1) {
["filters"]=>
array(2) {
[0]=>
array(3) {
["field"]=>
string(11) "category_id"
["value"]=>
string(3) "{id category 1}"
}
[1]=>
array(3) {
["field"]=>
string(11) "category_id"
["value"]=>
string(3) "{id category 2}"
}
}
}
}
}
Expected result
This condition should be return all products in category {id category 1} OR {id category 2}
Actual result
Generally empty list of products, some time only products in the last category in query.
Thanks
Metadata
Metadata
Assignees
Labels
Use with concrete module component label E.g. "Component: Webapi" + "Catalog"Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchAffects critical data or functionality and forces users to employ a workaround.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it