French people can get weird usernames
See here for an example:
https://forum.soundflow.org/-/admin/users/id/933
- KajMagnus @KajMagnus2020-06-26 13:12:22.100Z
Ok, so here's the username and name, anonymized:
FIRST_NAME_L39 (FIRST NAME L'LASTNAME)
Looks as if the name somehow gets escaped, before the username gets generated.
'
is:'
i.e. single quotation mark (apostrophe), same as'
.I'll try to reproduce. I think it's related to usernames generated from one's real name in the SSO API.
- CChristian Scheuer @chrscheuer
Yes exactly. It's possible there's an error somewhere in our code as well, just thought I'd flag this so we make sure to look at it :)
- KajMagnus @KajMagnus2020-06-28 13:42:33.573Z
I couldn't reproduce — I added an e2e test that SSO-upserts a new user with full name:
Fr Ç é ù ï â 'S "D
and another that upserts a user with that same name as username, and in both cases Ty then generates the usernameFr_C_e_u_i_a_S_D
(without39
)- CChristian Scheuer @chrscheuer
Hm yea the apostrophe may have been escaped elsewhere..
- Progresswith handling this problem