[ProfileAPI] Returns 500 when post a profile having more than 1024 deviceIds

Found in

EPiServer.Profiles.Client 1.17.0

Fixed in

EPiServer.Profiles.Client 1.18.1

Created

Jun 17, 2020

Updated

Jul 16, 2020

State

Closed, Fixed and tested


Description

Using API to post a new profile more than 1024 deviceIds:

{
            "Name": "user6789",
            "Info": {
                "Email": "user6789@example.com"
            },
            "DeviceIds": [
                "0", ... , "1025"
            ],
            "Scope": "default"
        }

  • Expected: Return 201 Created with new profile in body
  • Actual: Return 500 Internal Server Error