Names are being de-capitalized when created via SSO

sso

(Michael Downey) #1

Steps to reproduce:

  1. Be running Discourse in SSO mode.
  2. Create a new user, sending a payload with user ID, and name correctly capitalized such as “Jeffy O’Atwood”.

Expected behavior:

  • The user’s full name on Discourse is listed as “Jeffy O’Atwood”.

Actual behavior:

  • The new user actually gets created as “Jeffy O’atwood” with a lower-case “A”.

SSO data vs "normalized" local data
(Sam Saffron) #2

If this is reproducible it is certainly a bug.

Can you confirm that the SSO fields look right in the admin/user screen (screenshot please :slight_smile: )


(Michael Downey) #3

Yep, checked this.

Pardon my efforts to ensure privacy.

From SSO:

From Discourse:


(Michael Downey) #4

I noticed it in another user as well … it seems to be any user where there’s a capital letter after the first character. e.g. “OpenMRS” gets transformed into “Openmrs”.


(Michael Downey) #5

Have any other SSO users been able to reproduce this? :smile:


(Sam Saffron) #6

I am unable to reproduce this and I have a spec to confirm this is working right.


(Sam Saffron) #7