GTS icon indicating copy to clipboard operation
GTS copied to clipboard

Pokemon using invisible name being deleted

Open thel0thric opened this issue 3 years ago • 1 comments

What version of GTS are you running? GTS-Sponge-6.1.8-SNAPSHOT-250.jar

What version of Sponge are you running? SpongeForge 1.12.2-2838-7.3.1-RC4082 (when the problem happens as you can see on error log)

To Reproduce

  1. Rename your pokemon using an emoji (utf8)
  2. Try sell the renamed pokemon

Is there a solution? Based on what was discussed on Discord, I don't know. The player could receive a warning saying that their pokémon contains invalid characters, or just have the pokémon returned and an error message saying that it was not possible to continue the listing.

Maybe working on something like utf8mb4 is possible?

Or just do nothing, delete the report, call me a liar and say that there are no bugs in the GTS because there is nothing in the bugtracker. (☞ຈل͜ຈ)☞

Error logs (https://pastebin.com/KWLnf3ds) I tried to use Gist, but I'm a fucking dumb.

thel0thric avatar Jan 11 '22 01:01 thel0thric

Additional context, this is a problem only with UTF-8 characters that require 4 bytes, and is an issue with MySQL primarily. For now, the simple solution will be just blocking pokemon named like such. We can explore the encoding upgrade later on with API 8.

But yes, there are no bugs in GTS Sing Se.

NickImpact avatar Jan 11 '22 01:01 NickImpact