pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

[bug]: Context null on Graphql query when Catalog Permissions enabled

Open aagasi opened this issue 4 years ago • 3 comments

Describe the bug

We are experiencing an issue with the processing of a query. It's throwing the following error:

ERROR:

report.ERROR: Call to a member function getExtensionAttributes() on null {"exception":"[object] (GraphQL\\Error\\Error(code: 0): Call to a member function getExtensionAttributes() on null at /var/www/html/vendor/webonyx/graphql-php/src/Error/Error.php:174, Error(code: 0): Call to a member function getExtensionAttributes() on null at /var/www/html/vendor/magento/module-catalog-permissions-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/ApplyCategoryPermissionsOnProductProcessor.php:96)"} []

To reproduce

Steps to reproduce the behavior:

  1. Make sure the Catalog Permissions settings is enabled in the admin: catalog/magento_catalogpermissions/enabled

  2. Create a graphql query with a subquery (for example grouped products)

products(filter: { sku: { eq: $productSku } }) { items { name sku url_key ... on GroupedProduct { uid name sku items { qty position product { uid sku name url_key } } } } }

  1. Execute the query.

Expected behavior

Query should return data of the parent product and the grouped products associated with it.

Screenshots

If applicable, add screenshots to help explain your problem.

Please complete the following device information:

  • Magento Version: Commerce Cloud 2.4.2-p1

Please let us know what packages this bug is in regards to:

  • [* ] venia-concept
  • [* ] venia-ui
  • [ ] pwa-buildpack
  • [ ] peregrine
  • [ ] pwa-devdocs
  • [ ] upward-js
  • [ ] upward-spec
  • [ ] create-pwa

aagasi avatar Aug 25 '21 15:08 aagasi

Hi @aagasi. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Aug 25 '21 15:08 m2-assistant[bot]

@magento export issue to JIRA project PWA as Bug

anthoula avatar May 23 '22 14:05 anthoula

:white_check_mark: Jira issue https://jira.corp.magento.com/browse/PWA-2872 is successfully created for this GitHub issue.

github-jira-sync-bot avatar May 23 '22 14:05 github-jira-sync-bot

hey @aagasi

as per testing we are not able to reproduce this issue hence kindly help us here with more information if missing any steps or configuration to reproduce.

glo42707 avatar May 18 '23 09:05 glo42707

We waited for more than 14 days for update on this issue, hence we are closing it.

Please feel free to reopen if you are still have any update on the same.

glo82145 avatar Jun 06 '23 10:06 glo82145