Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 717596

Summary: the username and the real name are swapped in Preferences and the gentoo-wikiUserName= cookie uses real name instead
Product: Websites Reporter: inactive <gentoo_eshoes>
Component: WikiAssignee: Gentoo Wiki Team <wiki>
Status: RESOLVED INVALID    
Severity: normal CC: gentoo_eshoes
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=717374
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: username and realname have values that are swapped
the real name is now auto-filled on login page instead of the username

Description inactive 2020-04-15 15:38:35 UTC
When I look at https://wiki.gentoo.org/wiki/Special:Preferences whilst logged in, I see that "Username:	Gentoo eshoes " and "Real name: gentoo_eshoes". The latter is an editable field but is in face my username (which I use to log in!)
If I log out, then try to log in again by going to the Log in page, the "Username" is prefilled as "Gentoo eshoes" which is my "real" name, instead of "gentoo_eshoes" which is my username(note the underscore in the middle, compared to a space for realname and a differently cased G).

Furthermore the "Cookie:" http header contains "gentoo-wikiUserName=Gentoo+eshoes;"  which is obviously the "real" name value instead of the username value.



Reproducible: Always

Steps to Reproduce:
1. log in by going to https://wiki.gentoo.org/index.php?title=Special:UserLogin
2. got to Prefereces ie. https://wiki.gentoo.org/wiki/Special:Preferences

Actual Results:  
The values for "Real name:" and "Username:" are swapped (see attached screenshots)

Expected Results:  
username and realname should not appear swapped, also in the header cookie "gentoo-wikiUserName=" the username should be used.

Note that I've tested this via "$ /home/user/.local/bin/mozregression --launch=078326f48100828dc60d2e0ca2819164b8803b7d"
which is the browser that does NOT exhibit bug https://bugs.gentoo.org/717374#c5
Comment 1 inactive 2020-04-15 15:40:33 UTC
Created attachment 633082 [details]
username and realname have values that are swapped

but the real name is correctly shown as the menu title when trying to log out (unless it was meant to show the username there?)
Comment 2 inactive 2020-04-15 15:41:53 UTC
Created attachment 633084 [details]
the real name is now auto-filled on login page instead of the username

this is probably because of the cookie value which uses/saved the realname instead of the username
Comment 3 inactive 2020-04-15 15:48:12 UTC
oh crap, it actually works to log in with my real name "Gentoo eshoes" too :/
maybe I got this all wrong (again?)
Comment 4 inactive 2020-04-15 15:55:02 UTC
oh dear, checked my registration email: "Someone, probably you, [...] has registered an account "Gentoo eshoes" with this email address on Gentoo Wiki."
this means that at registration time I (unknowingly) swapped the username and realname fields, ie. I put the wrong info in each.

Well, that explains it.

Furthermore, I guess it's a feature to allow you to log in by using either username or realname.