Try our conversational search powered by Generative AI!

ProfileAPI_Scope: Wrong error message if length of scope > 64 characters

Found in

EPiServer.Profiles.Client 1.6.0

Fixed in

EPiServer.Profiles.Client 1.7.0

(Or a related package)

Created

Aug 29, 2018

Updated

Nov 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Put a new scope with name more than 64 characters, like this:

PUT: api/v1.0/scopes/weusesomeprettycooltechniquestodothisoneofthemispatternrecognition

Expected: (the same message content in segmentId and profileId) Returns 400 Bad Request with error message:
Invalid scopeId, scopeId cannot be longer than 64 characters.

Actual: Returns 400 Bad Request with error message:
Invalid ScopeId, ScopeId only supports 0-9,lowercased a-z,- character and must start with number or letter.

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