Forum authority authentication problem with non-ascii characters

What do you want to see here? Some more categories, forums, and mods? Hmm...
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Forum authority authentication problem with non-ascii charac

Post by Tank Program »

I think it might be due to using the http header to return the user name.
Image
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 »

It's actually the escaped version of the raw authenticated name. The URL escaped username is different. We have:
  • Raw authenticated name: §tar§truck@forums
  • Armagetron escaped authenticated name, which is used in stat files (won_matches.txt, ladderlog.txt, etc): %C2%A7tar%C2%A7truck@forums
  • URL escaped name, which is used when communicating with the auth server: %C2%A7tar%C2%A7truck
In the previous example the escaped auth name is the same as the URL escaped name, but they have different escaping rules. For example:
  • Raw: Name With Spaces@forums
  • Armagetron escaped: Name\_With\_Spaces@forums
  • URL escaped: Name%20With%20Spaces
... and here's what you get when you URL escape the Armagetron escaped name: %25C2%25A7tar%25C2%25A7truck%40forums
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Re: Forum authority authentication problem with non-ascii charac

Post by Tank Program »

Does this difference make it an issue that needs fixing? The escaped name is used pretty much only in the logs. Can it even be fixed? The only thing I can thing to do is to do an iconv encoding back to latin1 from in the bit where it gets the user name out of the database and I can't imagine that helping.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Forum authority authentication problem with non-ascii charac

Post by Z-Man »

Nah, no problems. If I understand dhl correctly embarrassingly telling me what my code is doing, the escaping seen here is done on the server, and for the purpose of logs, we should not change it. Only, perhaps, for the purpose of sending messages to the clients.
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 »

It wasn't meant to be condescending. My apologies if it read like that.
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Forum authority authentication problem with non-ascii charac

Post by Z-Man »

No worries, I really didn't remember everything the code does to the names.
Post Reply