ACSD-54026: Getting an incorrect error message for an updateCompanyRole GraphQL request…
Getting an incorrect error message for an updateCompanyRole GraphQL request for a non-authorized user. Quality patch ACSD-54026 for magento/module-company-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.6-p7.
- Categories
- GraphQL, B2B
- Components
- magento/module-company-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.39
Issue
Getting an incorrect error message for an updateCompanyRole GraphQL request for a non-authorized user.
Steps to reproduce
1. Enable B2B company in configuration. 1. Create a company. 1. Send an updateCompanyRole GraphQL request without passing a bearer token or with an invalid bearer token. 1. Observe the error message in the GraphQL response.
Adobe's page lists 2.4.6 - 2.4.6-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.7.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-54026. On Cloud, add ACSD-54026 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-54026/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-b2b-base >=1.3.5 <1.3.6
- Magento Open Source
- —
- Patch file
- patches/commerce/ACSD-54026_1.3.5.patch
- vendor/magento/module-company-graph-ql/Model/Resolver/UpdateCompanyRole.php
