[ProfileAPI] Cannot delete a profile which doesn't have DeviceId

Fixed in

EPiServer.Profiles.Client 1.20.0

Created

Jun 25, 2020

Updated

Sep 09, 2020

State

Closed, Fixed and tested


Description

1.Create a profile without DeviceIds
2. Using API to delete profile based on DeviceId:

DELETE: /api/v1.0/profiles/{{scope}}/{{profileId}}

-> It returns 200 OK with message: Successfully removed data for profile item profileId
3. Get profile in the previous step

  • Expected: The profile is deleted
  • Actual: The profile is not deleted, it is displayed in the list
    Note that: The bug doesn't occur when I add email of the profile in blacklist, then clear user data of the profile.