Skip to content

REST API : Search Criteria Filters not working for Product Repository GetList  #29126

Closed
@mack4hack

Description

@mack4hack

Description

SearchCriteria filters not working on a Product Attribute which is used while creating a Configurable Product.
Visibility filter applied to show only Visible products in product list.

Preconditions (*)

  1. Magento 2.4
  2. Enable 'Allow Anonymous Guest Access' from Store -> Configuration -> Services -> Magento Web API

Steps to reproduce (*)

  1. Create a Configurable Product

Screenshot from 2020-07-14 15-44-06

  1. GET : /rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[filterGroups][0][filters][0][value]=33&searchCriteria[filterGroups][1][filters][0][field]=visibility&searchCriteria[filterGroups][1][filters][0][value]=2&searchCriteria[filterGroups][1][filters][0][conditionType]=eq&searchCriteria[filterGroups][1][filters][1][field]=visibility&searchCriteria[filterGroups][1][filters][1][value]=4&searchCriteria[filterGroups][1][filters][1][conditionType]=eq&searchCriteria[filterGroups][2][filters][1][field]=mycolor&searchCriteria[filterGroups][2][filters][1][value]=5431

image

Expected result (*)

  1. Must Return Parent Product with attribute "mycolor" is set

image

Actual result (*)

  1. No Items in the response

image

Screenshot from 2020-07-14 17-45-41-1
Screenshot from 2020-07-14 17-45-54
Screenshot from 2020-07-14 17-42-54-1

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.

Metadata

Metadata

Assignees

Labels

Component: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.4.0Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions