Skip to content

Magento 2 Integration Resources Aren't Respected #33347

Closed
@AngelsDustz

Description

@AngelsDustz

Preconditions (*)

  1. Magento 2.4.2-p1

Steps to reproduce (*)

  1. Create a new integration
  2. Give it limited right (catalog -> inventory -> products)

Screenshot from 2021-06-25 08-18-24

  1. Do not give it access to "Update Attributes"

Expected result (*)

  1. The API is not allowed to update product attributes.
  2. Some 403/401 error is returned by the API.

Actual result (*)

  1. The API updates product attributes.

What I believe is happening is that it is getting recursive rights, so if you select products it gets all of it under it too. But I need a read-only integration so it seems natural that if the "Update Attributes" is not checked it can not do that.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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

No one assigned

    Labels

    Area: APIsComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions