[InsightUI][Segment] Display 500 error when Preview Profile filter definition with quote and curly bracket

Fixed in

EPiServer.Profiles.Client 1.23.0

Created

Apr 09, 2020

Updated

Dec 31, 2020

State

Closed, Fixed and tested


Description

1. Create a profile filter definition like this:

POST: /api/v2.0/filterDefinitions
        {
            "Name": "PDF_Name_with_quote_curly_bracket",
            "Description": "Name equal inputValue with single quote and curly bracket",
            "Query": "Name eq '{{name}}'",
            "Category": "PFD",
            "Type": "Profiles"
        }

-> It returns 201 Created
2. Open Insight > Segment > press the Create a segment button
3. Choose the newly created filter definition in step 1 > choose Scope value > press Preview

  • Actual: Display the Error message: Oops... Error: Request failed with status code 500
    Please see an attached image.