View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0007687 | GraphQL Storefront | General | public | 2024-07-03 11:23 | 2026-08-24 15:19 |
| Reporter | Assigned To | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | v3.1.0 | ||||
| Fixed in Version | v5.1.0 | ||||
| Summary | 0007687: Inactive country in delivery address leads to Unauthorrized error | ||||
| Description | If a customer has a delivery address with an inactive country, the API returns an Unauthorized error but also returns result data. The result contains null for the inactive country. This differs from the shop's frontend which shows the country no matter if active or not. | ||||
| Steps To Reproduce | - Register user. - Set a delivery address with country Austria. - Deactivate Austria. - Read delivery addresses via GraphQL API. query Customer { customer { deliveryAddresses { country { title } } } } | ||||
| Additional Information | Result from a user with two delivery addresses. One in Switzerland, one in Austria. Switzerland is active while Austria is inactive. { "errors": [ { "message": "Unauthorized", "locations": [ { "line": 8, "column": 4 } ], "path": [ "customer", "deliveryAddresses", 1, "country" ] } ], "data": { "customer": { "deliveryAddresses": [ { "country": { "title": "Switzerland" } }, { "country": null } ] } } } | ||||
| Tags | No tags attached. | ||||