Personalized content not displayed if VisitorGroup in Profile has uppercase letters or special characters

Fixed in

EPiServer.Profiles.Client 1.9.0

Created

May 23, 2019

Updated

Jul 08, 2019

State

Closed, Fixed


Description

1.Create a profile with VisitorGroups info like this:

"VisitorGroups": [
                "list!@#@!#",
 ]

2. Create a segment with ProfileQuery having VisitorGroups in step 1:

POST: /api/v1.0/segments
{
  "Scope": "default",
  "SegmentManager": "admin@example.com",
  "ProfileQuery": "VisitorGroups eq 'list!@#@!#'",
  "AvailableForPersonalization": true,
  "Archived": false,
  "FavoredBy": [
    "admin@example.com"
  ],
  "Name": "VisitorGroups eq 'list!@#@!#'",
  "Description": "VisitorGroups"
}

3. Create a VisitorGroup with the segment described in step 2.
4. Create a content item with personalization for the VisitorGroup created in step 3 and publish.
5. Log in to the site as the user profile in step 1.
6. Access content created in step 4.

Expected:
Display the content accordingly

Actual:
Don't display the content.

Note: It occurs with VisitorGroups including uppercase letters.