[Segment_v2.0]: Returns 500 Server Error when input a negative number in param with profile filter definition

Fixed in

EPiServer.Profiles.Client 1.24.0

Created

Nov 12, 2020

Updated

Mar 05, 2021

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Create a profile filter definition with params being number data types (int, long, double):
{
  "Name": "Int_data2",
  "Description": "Number equal a value",
  "Query": "Payload.number eq {{value}}",
  "Parameters": {
    "value": "int"
  },
  "Category": "Profiles",
  "Type": "Profiles"
}

-> Create successfully

2.  Create a segment with filter definition in step 1 and insert a negative number in param like this:

{
  "Parameters": {
    "value": -2
  }
}

Expected result:

Returns 201 Created.

Actual result:

Returns 500 Internal Server Error.

Note: It does not occur in the event filter definition.