mojira.dev
WEB-8

Some users have multiple UUID records for agent:minecraft

Several users have multiple UUIDs, documented here is one user "jumbokiller2001".

{"name":"jumbokiller2001","agent":"minecraft"}

{"id":"e01c28e44f2443389440e07974a47393","name":"JUMBOKILLER2001"}
{"id":"6d0409ceb40c4580b2075e19d6a12003","name":"JUMBOKILLER2001"}
{"id":"a8e27c733217448ab7166ae32f00799c","name":"JUMBOKILLER2001"}
{"id":"a5d19e7fb70f4a7ab9bfaf02eda2562a","name":"JUMBOKILLER2001"}
{"id":"311a4cacf4584766aa89212a55d9ea3d","name":"JUMBOKILLER2001"}

Code used:
A very simple wrapper created from https://github.com/Mojang/AccountsClient

String name = "jumbokiller2001";
Profile[] profiles = profileRepository.findProfilesByCriteria(new ProfileCriteria(name, "minecraft"));
        if (profiles.length == 1) {
            return profiles[0].getId();
        } else {
            for(Profile profile : profiles) {
                System.err.println(gson.toJson(profile));
            }
            return "Couldn't get the UUID! :(";
        }

Linked issues

Comments 49

Whoever formatted this for me, you're a saint, thankyou.

Tip: Embrace code sections with {code} tags.

I can verify this on my UUID converter

Array
(
    [profiles] => Array
        (
            [0] => Array
                (
                    [id] => e01c28e44f2443389440e07974a47393
                    [name] => JUMBOKILLER2001
                )

            [1] => Array
                (
                    [id] => 6d0409ceb40c4580b2075e19d6a12003
                    [name] => JUMBOKILLER2001
                )

            [2] => Array
                (
                    [id] => a8e27c733217448ab7166ae32f00799c
                    [name] => JUMBOKILLER2001
                )

            [3] => Array
                (
                    [id] => a5d19e7fb70f4a7ab9bfaf02eda2562a
                    [name] => JUMBOKILLER2001
                )

            [4] => Array
                (
                    [id] => 311a4cacf4584766aa89212a55d9ea3d
                    [name] => JUMBOKILLER2001
                )

        )

    [size] => 5
)

Also, Fishbans api can't search the UUID of this user.

http://api.fishbans.com/stats/JUMBOKILLER2001

{"success":false,"error":"Unable to get UUID for this user."}

39 more comments

Reopened, issues still occur when there are two names in a request

The new API is now returning demo accounts, too.
Thus we got the same problem again. For some reason it only returns two accounts (e.g. Nico/nico) when more than 1 user is requested.

How very strange, well caught!

I noticed that earlier today as well

The public API has now been updated to exclude demo profiles from the listing (which is the intended behavior). Thanks for bringing this to our attention!

Ben Smith

migrated

Retrieved