[ProfileAPI_Scope]: Create new scope if scope > 64 characters including many dashes

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.7.0

Created

Aug 29, 2018

Updated

Nov 30, 2018

State

Closed, Fixed and tested


Description

Step to reproduce

  1. Create a new scope with a name greater than 64 characters that includes many dashes, like this:

    PUT: api/v1.0/scopes/wedontusesomeprettycooltechniquestodothisoneofthemispatter--------------------12133------------------------------------------------------------------1---------------------
    

Expected:
(I refer on ProfileStore ver 1.5 release): Returns 400 Bad Request with error message:
Invalid scopeId. ScopeId length must be between 1 and 64 characters.

Actual:
Returns 201 Created with new scope.

Note: Problem doesn't occur when PUT segment or profile.