Try our conversational search powered by Generative AI!

[ProfileAPI] Profile store PUT and GET methods not working as expected

Fixed in

EPiServer.Profiles.Client 1.6.0

(Or a related package)

Created

Jun 12, 2018

Updated

Oct 19, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Create a profile, like this:

{
  "visits": 556,
  "deviceIds": [
    "ipad-1234abcd",
    "ipad-1234abcdee",
    "ipad-1234abcd-20180411-1",
    "mobile-1234abcde",
    "ipad-1234abcd-20180428-9"
  ],
  "payload": {
    "otherCustom": "irgendwas",
    "customField": 1
  },
  "contactInformation": [
    "fon",
    "email",
    "fax",
    "push",
    "Mailable"
  ],
  "lastSeen": "2018-05-28T14:03:00.8329739",
  "name": "Put Client X",
  "id": "23bcd00f-0699-4cac-8feb-31ecf3175012",
  "profileManager": "Episerver Demo2-Client",
  "info": {
    "Email": "X.Y@episerver.com",
    "InferredCountry": "DE",
    "Picture": "path.com\/to\/nowhere2"
  }
}

2. Update this profile using PUT with lastSeen month = 04 and month = 03.
3. Filter profile using

request: /api/v1.0/profiles/?$filter=Info.Email eq X.Y@episerver.com

or

Get profile by id /api/v1.0/profiles/DefaultScope/23bcd00f-0699-4cac-8feb-31ecf3175012

Expected:

  • No error in get profile by id.
  • Filter request returns 1 result.

Actual:

  • The `get profile by id` api throws a 500 error.
  • The `filter request` returns 3 results.