November Happy Hour will be moved to Thursday December 5th.

[ProfileAPI]: Inconsistent display the null value

Fixed in

EPiServer.Profiles.Client 1.24.0

(Or a related package)

Created

Dec 18, 2020

Updated

Apr 16, 2021

State

Closed, Fixed and tested


Description

1. Create a new profile:

POST: /api/v1.0/profiles
{
    "Info":
    {
        "ZipCode"null
    }
}

-> It returns 201 Created with body:

{
    "ProfileId""545db9d4-79f8-49cb-ae63-34ab6ca95647",
      .....
    "Info": {
        "ZipCode"null
     }
}

2. Get the newly created profile in step 1:

GET /api/v1.0/profiles/default/545db9d4-79f8-49cb-ae63-34ab6ca95647

-> It returns the profile with info:

 {
     "ProfileId""545db9d4-79f8-49cb-ae63-34ab6ca95647",
     .....
     "Info": {},
 }

Expected result:

The Info property should display consistent information.