Skip to content

Unnecessarly escaped charaters in ProductInterface #40178

@cornedor

Description

@cornedor

Preconditions and environment

  • Magento version 2.4.8-p1

5c6d83d

This change produced unnecessary and unreliable escaped product names in GraphQL responses. The GraphQL endpoint should never return escaped values for several reasons:

  1. Not every platform works with HTML entities, this prevents names from being rendered correctly in native apps.
  2. The rest of the GraphQL API does not returned escaped variables. This gives developers a false sense of security, and could introduce real security issues when a developer assumes this happens everywhere.
  3. This was a breaking change.

Steps to reproduce

  1. In Magento admin, create a product with a special character in the name. For example >.
  2. Query the name from that product using GraphQL.

Expected result

It should return unescaped > in the name.

Actual result

The GraphQL API returns the escaped greater than sign >

Additional information

No response

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

Labels

Area: ProductComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Reported on 2.4.8-p1Indicates 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

Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions