decentraland / kernel

Kernel is the glue code between the OS, comms and the Renderer of Decentraland
https://play.decentraland.org
Apache License 2.0
19 stars 24 forks source link

Guest usernames are overwritten by kernel #350

Open davidejensen opened 2 years ago

davidejensen commented 2 years ago

I was debugging the unity-explorer issue https://github.com/decentraland/unity-renderer/issues/2432 and I realized that this might be a kernel bug.

Basically when we create a new guest user the name we pick in creation is always overwritten by a random name picked casually and the email is always empty. I'm saying it might be a kernel issue because in the messages we receive after the character creation and after we send correctly the message SendPassport with new name and email, the first message we receive of type LoadProfile holds the correct information, then there is another LoadProfile one that has wrong info, following the two payloads received.

First correct one (with no mail):

{"userId":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","email":"","version":2,"hasClaimedName":false,"ethAddress":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","tutorialStep":0,"name":"TestUsr#35a5","description":"","avatar":{...

Second wrong one (with no mail):

{"userId":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","email":"","version":2,"hasClaimedName":false,"ethAddress":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","tutorialStep":0,"name":"Lujube#35a5","description":"","avatar":...

Also after pressing the "Got It" button in the first screen that appears i receive another LoadProfile message that again is with the wrong name and has the version 3:

{"userId":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","email":"","version":3,"hasClaimedName":false,"ethAddress":"0xdf00299f60ac4c0f6cf9e91692f6bc29e1f235a5","tutorialStep":256,"name":"Lujube#35a5","description":"","avatar":
davidejensen commented 2 years ago

As requested by @menduz here is the trace of messages in which you can see the discrepancy: TraceGuestUserCreation.csv