Try our conversational search powered by Generative AI!

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

Fixed in

EPiServer.Profiles.Client 1.23.0

(Or a related package)

Created

Apr 09, 2020

Updated

Dec 31, 2020

State

Closed, Fixed and tested


Description

Fixed issue where a 500 error is displayed when using Preview Profile filter definition with quote and curly bracket.

Steps to reproduce:

  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 > click Create a segment.
3. Choose the newly created filter definition in step 1 > choose Scope value and click Preview.

  • Actual: Display the Error message: Oops... Error: Request failed with status code 500.