userName field length validation counts byte length instead character length

Description
When sending information to the web sdk client (configuration fields), the validation (probably on server side) counts “userName” value as bytes and not as characters. This might apply to other fields as well, only userName is tested.

In my tests the userName value I’m sending to the client is Cyrillic and has 59 multbyte characters. PHP strlen() for example reports 110 length (but it shouldn’t be confused with character length) while JS length property reports the character counts 59.

Error
[4003] userName length > 100 or userName is empty

Which Client Web SDK version?
Tested in 1.9.0 and latest 1.8.x

To Reproduce(If applicable)
Set userName to “Психолог, Психотерапевт, Личен и Бизнес Коуч Ирина Ставрева”

Screenshots
n/a

Device (please complete the following information):

  • Device: any
  • OS: any
  • Browser: any
  • Browser Version any

Hey @m.yovchev ,

Thanks for reporting this issue to us. We will take a look at this and come up with a solution. (CS-3138)

Stay tuned! :slight_smile:

-Tommy

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.