Try our conversational search powered by Generative AI!

[SegmentAPI]: Returns wrong message when creating Segment with invalid property in ProfileQuery

Found in

EPiServer.Profiles.Client 1.14.0

Fixed in

EPiServer.Profiles.Client 1.17.0

(Or a related package)

Created

Mar 12, 2020

Updated

May 22, 2020

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Use the API to create a segment like this:

    POST: /api/v1.0/segments (or /api/v2.0/segments)
            {
                "Name": "Testing segment 01",
                "ProfileQuery": "testing gt 12313",
                "Description": "Description",
                "SegmentManager": "admin@example.com",
                "AvailableForPersonalization": true,
                "Archived": false,
                "FavoredBy": [
                    "admin@example.com"
                ],
                "Scope": "default"
            }
    

Expected:
Returns 400 Bad Request with message "Property in ProfileQuery doesn't exist in profile."

Actual:
Returns 400 Bad Request with message: "Invalid segment type."