Open
Description
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:
- create new order
- in DB in table
sales_order
set "status" and "state" as null - 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
Assignees
Labels
Use with concrete module component label E.g. "Component: Api" + "Catalog"Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch