Skip to content

/orders(or /orders/{id}) endpoint missing "state" and "status" fields #37807

Open
@Naberal

Description

@Naberal

Preconditions and environment

  • Magento version: I reproduced on 2.4.6-p1
  • It caused by broken DB data

Steps to reproduce

I reproduce in this way:

  1. create new order
  2. in DB in table sales_order set "status" and "state" as null
  3. make a request in postman using the /orders(or /orders/{id}).

Expected result

Per the rest api docs there should be "state" and "status" fields on the response data and their type is a string, in such case empty string.

Actual result

"state" and "status" fields missing entirely.

Additional information

with such broken DB data, Magento works Ok, but for those who use these endpoints, it is unexpected behavior.

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: 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: P2A defect with this priority could have functionality issues which are not to expectations.Progress: dev in progressReported on 2.4.6-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

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions