mojira.dev
MC-255284

Players with name containing chars higher than 127 can't join on servers

In the sourcecode of minecraft this function is used to verify username validation

Source code example

public static boolean isValidUsername(String s) {
      return s.chars().filter(paramInt -> (paramInt <= 32 || paramInt >= 127)).findAny().isEmpty();

The problem is that there are existing users that will fail this check.

List of usernames:

  • Sengångaren

  • Séboutron

  • Schokobrötchen

Direkt Mojang-API Links to the accounts that are not able to join:

https://sessionserver.mojang.com/session/minecraft/profile/166e87b2-7cb7-48a6-9349-9f81ab520d49
https://sessionserver.mojang.com/session/minecraft/profile/4f022972-b336-4bc5-a7fe-09be3a7facbc
https://sessionserver.mojang.com/session/minecraft/profile/35a4ec32-3974-448e-8f98-0c5e400ab895

Attachments

Comments 2

I can confirm this behavior.

[media]

Mojang staff have purged some “Invalid” account names including the name Sengångaren.

realoutfluencer

(Unassigned)

Confirmed

Platform

Very Important

Networking

1.19.2, 22w45a, 22w46a

Retrieved