View Issue Details

IDProjectCategoryView StatusLast Update
0007687GraphQL StorefrontGeneralpublic2026-08-24 15:19
Reporteruser1329Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Versionv3.1.0 
Fixed in Versionv5.1.0 
Summary0007687: Inactive country in delivery address leads to Unauthorrized error
DescriptionIf 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 InformationResult 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
        }
      ]
    }
  }
}
TagsNo tags attached.

Activities

QA

2024-07-03 13:36

administrator   ~0017188

-MK