magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Getting a product via REST API using a custom attribute as a filter field does NOT return all product data!

Open bansavage opened this issue 7 years ago • 11 comments

Summary

Getting a product via REST API using a custom attribute as a filter field does NOT return all product data, including category ids. Getting the same product via SKU returns ALL of the product's data.

Preconditions

  1. Magento 2.1.7
  2. PHP 7.0

Steps to reproduce

  1. Get a product via a custom attribute as a filter field
  2. Get a product via SKU
  3. Notice how much more data is returned for the EXACT SAME product when a SKU GET is performed.

Expected result

  1. Getting a product via any API method should return the full product's data. Not some sort of half-baked assortment that varies upon your API route.

Actual result

  1. Getting a product via a filter field returns a condensed product object.

bansavage avatar Jun 22 '18 16:06 bansavage

Hi @bansavage. Thank you for your report. To help us process this issue please make sure that you provided the following information:

  • [ ] Summary of the issue
  • [ ] Information on your environment
  • [ ] Steps to reproduce
  • [ ] Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me {$VERSION} instance

where {$VERSION} is version tags (starting from 2.2.0+) or develop branches (2.2-develop +). For more details, please, review the Magento Contributor Assistant documentation.

@bansavage do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • [ ] yes
  • [ ] no

magento-engcom-team avatar Jun 22 '18 16:06 magento-engcom-team

Hello @bansavage , thank you for your report. We've acknowledged the issue and added to our backlog.

engcom-backlog-nickolas avatar Jul 04 '18 07:07 engcom-backlog-nickolas

Thank you for acknowledging the issue. As it was reproduced in 2.3, I wonder how a 'headless' Magento PWA is supposed to succeed?

bansavage avatar Jul 05 '18 13:07 bansavage

Hi @pawel989. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


m2-assistant[bot] avatar Sep 15 '19 11:09 m2-assistant[bot]

Hi @ivan-koliadynskyy. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • [ ] 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • [ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


m2-assistant[bot] avatar Oct 10 '19 17:10 m2-assistant[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

stale[bot] avatar Feb 15 '21 06:02 stale[bot]

3yrs later...

bansavage avatar Feb 19 '21 15:02 bansavage

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

stale[bot] avatar May 06 '21 23:05 stale[bot]

Whoops.

jordangottlieb-ych avatar May 06 '21 23:05 jordangottlieb-ych

Hi @engcom-Delta. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

    1. Add/Edit Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
    1. If the issue is not relevant or is not reproducible any more, feel free to close it.

m2-assistant[bot] avatar May 20 '24 07:05 m2-assistant[bot]

6 yrs later...

bansavage avatar May 20 '24 18:05 bansavage

Hi @bansavage ,

Thanks for your reporting and collaboration. We have verified the issue in latest 2.4-develop instance and the issue is reproducible. Kindly refer the screenshots.

Steps to reproduce

  1. Get a product via a custom attribute as a filter field
  2. Get a product via SKU
  3. Notice how much more data is returned for the EXACT SAME product when a SKU GET is performed. Observe stock item detail is missing when user retrieve information with custom attribute. Json response - Custom attribute jsonformatter (1).txt

Json response - SKU jsonformatter.txt

Thanks.

engcom-Delta avatar Sep 19 '24 10:09 engcom-Delta

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-13050 is successfully created for this GitHub issue.

github-jira-sync-bot avatar Sep 19 '24 11:09 github-jira-sync-bot

:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

m2-assistant[bot] avatar Sep 19 '24 11:09 m2-assistant[bot]