{"action":"created","issue":{"url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/207","repository_url":"https://api.github.com/repos/drtshock/PlayerVaults","labels_url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/207/comments","events_url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/207/events","html_url":"https://github.com/drtshock/PlayerVaults/issues/207","id":164602494,"number":207,"title":"Items with \"strange names\" bugging players PV's...","user":{"login":"L4BORG","id":12632230,"avatar_url":"https://avatars.githubusercontent.com/u/12632230?v=3","gravatar_id":"","url":"https://api.github.com/users/L4BORG","html_url":"https://github.com/L4BORG","followers_url":"https://api.github.com/users/L4BORG/followers","following_url":"https://api.github.com/users/L4BORG/following{/other_user}","gists_url":"https://api.github.com/users/L4BORG/gists{/gist_id}","starred_url":"https://api.github.com/users/L4BORG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/L4BORG/subscriptions","organizations_url":"https://api.github.com/users/L4BORG/orgs","repos_url":"https://api.github.com/users/L4BORG/repos","events_url":"https://api.github.com/users/L4BORG/events{/privacy}","received_events_url":"https://api.github.com/users/L4BORG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-08T19:43:34Z","updated_at":"2016-07-14T23:12:57Z","closed_at":null,"body":"How to replicate this?\r\n\r\nTake anvil, take random item, rename item on anvil and use this as name (not sure if you can copy paste this via web without changing invalid utf-8 characters I've originally copied them from here: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt for testing):\r\n\r\n𐀀𐀀𐀀�����\"𐀀\"κόσμε\r\n\r\nput renamed item into your /pv 1 close it... boom, now you can't open your /pv 1 anymore.\r\n\r\nit's actually not cause by \"κόσμε\" but some random (invalid) UTF-8 characters I've copied from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt\r\n\r\nMy guess is JSONObject would recognize this as binary data and created this:\r\n\r\nhttps://github.com/drtshock/PlayerVaults/issues/182\r\n\r\nOf course decoding this is not supported for some reason, which is why that /pv would be bugged from that point on... with Ex:\r\n\r\n```\r\n[08:56:46] [Server thread/INFO]: Bugger issued server command: /pv 1\r\n[08:56:46] [Server thread/ERROR]: null\r\norg.bukkit.command.CommandException: Unhandled exception executing command 'pv' in plugin PlayerVaults v3.5.8-SNAPSHOT-b195\r\n    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:143) ~[patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1194) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1006) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_60]\r\n    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_60]\r\n    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]\r\nCaused by: java.lang.NullPointerException\r\n    at com.drtshock.playervaults.vaultmanagement.Serialization.toMap(Serialization.java:45) ~[?:?]\r\n    at com.drtshock.playervaults.vaultmanagement.Serialization.toInventory(Serialization.java:94) ~[?:?]\r\n    at com.drtshock.playervaults.vaultmanagement.UUIDVaultManager.getInventory(UUIDVaultManager.java:164) ~[?:?]\r\n    at com.drtshock.playervaults.vaultmanagement.UUIDVaultManager.loadOwnVault(UUIDVaultManager.java:100) ~[?:?]\r\n    at com.drtshock.playervaults.vaultmanagement.VaultOperations.openOwnVault(VaultOperations.java:130) ~[?:?]\r\n    at com.drtshock.playervaults.vaultmanagement.VaultOperations.openOwnVault(VaultOperations.java:155) ~[?:?]\r\n    at com.drtshock.playervaults.commands.VaultCommand.onCommand(VaultCommand.java:35) ~[?:?]\r\n    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched.jar:git-TacoSpigot-\"a4a61e1\"]\r\n    ... 15 more\r\n```\r\n\r\nFile was generated and modified only by PV and I'm sure you should be now able to replicate this..."},"comment":{"url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/comments/232819120","html_url":"https://github.com/drtshock/PlayerVaults/issues/207#issuecomment-232819120","issue_url":"https://api.github.com/repos/drtshock/PlayerVaults/issues/207","id":232819120,"user":{"login":"drtshock","id":2638275,"avatar_url":"https://avatars.githubusercontent.com/u/2638275?v=3","gravatar_id":"","url":"https://api.github.com/users/drtshock","html_url":"https://github.com/drtshock","followers_url":"https://api.github.com/users/drtshock/followers","following_url":"https://api.github.com/users/drtshock/following{/other_user}","gists_url":"https://api.github.com/users/drtshock/gists{/gist_id}","starred_url":"https://api.github.com/users/drtshock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drtshock/subscriptions","organizations_url":"https://api.github.com/users/drtshock/orgs","repos_url":"https://api.github.com/users/drtshock/repos","events_url":"https://api.github.com/users/drtshock/events{/privacy}","received_events_url":"https://api.github.com/users/drtshock/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T23:12:56Z","updated_at":"2016-07-14T23:12:56Z","body":"Thank you for all the info. I'll look into it hopefully over the weekend when I have some time :)"}}
{"actor":{"display_login":"drtshock"}}