Skip to content

[GraphQL] route query ignoring whether a category is disabled #40987

Description

@simonmaass

Preconditions and environment

  • Magento version: 2.4.9

Steps to reproduce

Create a new category (keep it enabled)
Disable the category afterwards
Execute the following query (replace placeholder with your url key):

query route {
  route(url: "XXXXX") {
    type
    relative_url
  }
}

Expected result

The category is not returned:

{
  "data": {
    "route": null
  }
}

Actual result

The category is returned:

{
  "data": {
    "route": {
      "type": "CATEGORY",
      "relative_url": "test123/"
    }
  }
}

Additional information

Since version 2.4.9 this works for products (before it also didnt work for disabled products) but still doesnt work for categories.

Release note

No response

Triage and priority

  • 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

Labels

Area: CatalogComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.9Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions