Forum authority authentication problem with non-ascii characters

What do you want to see here? Some more categories, forums, and mods? Hmm...
§tar§truck
Posts: 5
Joined: Sat Jun 19, 2010 3:02 am

Forum authority authentication problem with non-ascii characters

Post by §tar§truck »

I have tried to login typing this:

Code: Select all

/login §tar§truck@forums
And when i type in my password, the error comes up with USER_NOT_FOUND. Is it because servers cannot recognize the symbol "§"? That wouldn't make sense because these forums allowed me to use the username so it should allow me to authenticate through the server using this username...some help please?
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: I cannot login!

Post by dlh »

What client version are you running? Older client versions didn't escape the username automatically.
Last edited by dlh on Sun Jun 20, 2010 7:13 am, edited 1 time in total.
§tar§truck
Posts: 5
Joined: Sat Jun 19, 2010 3:02 am

Re: I cannot login!

Post by §tar§truck »

I'm running 0.3_alpha8870. One of the newest versions. I don't know why authentication isn't working.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Re: I cannot login!

Post by epsy »

Hell yeah it is old. Try this one instead:

http://forums3.armagetronad.net/viewtop ... 50&t=20106
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: I cannot login!

Post by dlh »

I created a new account here, Te§tU§ername, and I also couldn't get armathentication to work. I then created another account, TestUsername, and ensured that authentication is still working for plain ASCII usernames. I also tried Te§tU§ername with my authority (generalconsumption.org) and it worked fine. This is just an issue on the forums authority.

Tank Program will have to look into this. My guess is that it's an encoding problem, but I don't have access to the forums armathentication setup to investigate.

Note: Can a mod split this to a new topic?
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Forum authority authentication problem with non-ascii charac

Post by Jonathan »

UTF-8 "§" = Latin 1 "§" = C2 A7

Would using § in the user name or login name instead work? I don't know which encodings are actually involved though, or if it kills it some other way.
ˌɑrməˈɡɛˌtrɑn
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: Forum authority authentication problem with non-ascii charac

Post by Tank Program »

OK, it may be fixed. It needed

Code: Select all

mysql_set_charset("utf8");
after the connection. We might want to add this to bzr as well.
Image
§tar§truck
Posts: 5
Joined: Sat Jun 19, 2010 3:02 am

Re: Forum authority authentication problem with non-ascii charac

Post by §tar§truck »

So what do I do to log in? This mysql stuff isn't English to me so I'm lost in what I need to do to authenticate.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Forum authority authentication problem with non-ascii charac

Post by Jonathan »

He meant "I might have fixed it. Go try and log in normally."
ˌɑrməˈɡɛˌtrɑn
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: Forum authority authentication problem with non-ascii charac

Post by Tank Program »

Jonathan wrote:He meant "I might have fixed it. Go try and log in normally."
Yes, sorry for being unclear. Please test if it works now. :)
Image
§tar§truck
Posts: 5
Joined: Sat Jun 19, 2010 3:02 am

Re: Forum authority authentication problem with non-ascii charac

Post by §tar§truck »

So i tried and it logs me in now. Cool. So whatever you did changed the '§' into '%C2%A7'.
My login looks like this %C2%A7tar%C2%A7truck@forums.
That's so weird but works lol.
Attachments
screenshot_33.png
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Forum authority authentication problem with non-ascii charac

Post by Z-Man »

That looks like it's URLencoded. If I get things right, the game server expects plain UTF8 in the response (yes, even 0.2.8). So there's still a a missing decode/one too many encodes in the authority code somewhere where it reports the true username.
§tar§truck
Posts: 5
Joined: Sat Jun 19, 2010 3:02 am

Re: Forum authority authentication problem with non-ascii charac

Post by §tar§truck »

So Tank will have to do some more 'looking into it' before he knows he fixed it? Because I dont know diddly squat about this encoding stuff.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Re: Forum authority authentication problem with non-ascii charac

Post by Jonathan »

Yeah, looks like it.
ˌɑrməˈɡɛˌtrɑn
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Forum authority authentication problem with non-ascii charac

Post by dlh »

The escaped name is the true username. However using the un-escaped version only for display purposes would be an okay change.
Post Reply