Closed
Description
Preconditions
- Magento 2.4-develop
- Magento 2.3.3
- Vanilla Install
Steps to reproduce
-
Allow Anonymous Guest Access
From : Stores -> Configuration -> Services -> Magento Web API -> Web API Security -
Assign position value to products
from : Catalog -> Categories -> Select Category -> Products in Category
- Hit this endpoint:
GET : <domain name>/rest/V1/products/?searchCriteria[filterGroups][0][filters][0][field]= category_id&searchCriteria[filterGroups][0][filters][0][value]=3&searchCriteria[sortOrders][0][field]= position&searchCriteria[sortOrders][0][direction]=ASC&searchCriteria[pageSize]=5
Expected result ✔️
The product's list should be sorted by "position" parameter
Actual result: ✖️
The product's list is not sorted by the "position" parameter
Search Criteria, as returned in the response
"search_criteria": {
"filter_groups": [
{
"filters": [
{
"field": "category_id",
"value": "3",
"condition_type": "eq"
}
]
}
],
"sort_orders": [
{
"field": "position",
"direction": "ASC"
}
],
"page_size": 5
}
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Use with concrete module component label E.g. "Component: Api" + "Catalog"Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.
Type
Projects
Status
Done