Validation of postcodes in the United Kingdom prevents saving profile data

Fixed in

EPiServer.Profiles.Client 1.18.0

Created

Apr 02, 2020

Updated

Jun 19, 2020

State

Closed, Fixed and tested


Description

Using Profile Store REST API, create new profile or update existing profile using POST/PUT actions.
Include zip code in profile data in profile.Info.ZipCode and use valid postcodes in the United Kingdom, for example:

  • EC1A 1BB
  • W1A 0AX
  • M1 1AE
  • CR2 6XH
  • DN55 1PT
    etc

Expected: profile data is saved.

Observed: 400 Bad Request and error object with the message like
Invalid value.
Info.ZipCode: DN55 1PT

Note: some of postcodes are still accepted.