{"action":"created","issue":{"url":"https://api.github.com/repos/ether/etherpad-lite/issues/2522","labels_url":"https://api.github.com/repos/ether/etherpad-lite/issues/2522/labels{/name}","comments_url":"https://api.github.com/repos/ether/etherpad-lite/issues/2522/comments","events_url":"https://api.github.com/repos/ether/etherpad-lite/issues/2522/events","html_url":"https://github.com/ether/etherpad-lite/issues/2522","id":58116270,"number":2522,"title":"JSON-PROBLEM shuts server down","user":{"login":"Gared","id":913630,"avatar_url":"https://avatars.githubusercontent.com/u/913630?v=3","gravatar_id":"","url":"https://api.github.com/users/Gared","html_url":"https://github.com/Gared","followers_url":"https://api.github.com/users/Gared/followers","following_url":"https://api.github.com/users/Gared/following{/other_user}","gists_url":"https://api.github.com/users/Gared/gists{/gist_id}","starred_url":"https://api.github.com/users/Gared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gared/subscriptions","organizations_url":"https://api.github.com/users/Gared/orgs","repos_url":"https://api.github.com/users/Gared/repos","events_url":"https://api.github.com/users/Gared/events{/privacy}","received_events_url":"https://api.github.com/users/Gared/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ether/etherpad-lite/labels/Serious%20Bug","name":"Serious Bug","color":"D5144D"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-02-18T19:35:48Z","updated_at":"2015-07-01T11:14:42Z","closed_at":null,"body":"A few pads are invalid on my instance and every time these pads are called I get a JSON-PROBLEM-Exception:\r\n```\r\n[2015-02-18 20:13:48.167] [ERROR] console - JSON-PROBLEM (pad:49Xv36g3re93MSV):{\"atext\":{\"text\":\"some text\\n\\n\r\n[2015-02-18 20:13:48.173] [ERROR] console - gracefulShutdown...\r\n[2015-02-18 20:13:48.173] [ERROR] console - Async Stacktrace:\r\n    at /opt/eplite/etherpad-lite-dev/src/node/handler/PadMessageHandler.js:1306:5\r\n    at /opt/eplite/etherpad-lite-dev/src/node/handler/PadMessageHandler.js:1042:16\r\n    at /opt/eplite/etherpad-lite-dev/src/node/db/PadManager.js:171:10\r\n    at Object.callback (/opt/eplite/etherpad-lite-dev/src/node/db/Pad.js:385:8)\r\n\r\nSyntaxError: Unexpected end of input\r\n    at Object.parse (native)\r\n    at /opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/CacheAndBufferLayer.js:164:24\r\n    at Query._callback (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/mysql_db.js:116:5)\r\n    at Query.Sequence.end (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)\r\n    at Query._handleFinalResultPacket (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/sequences/Query.js:143:8)\r\n    at Query.EofPacket (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/sequences/Query.js:127:8)\r\n    at Protocol._parsePacket (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/Protocol.js:271:23)\r\n    at Parser.write (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/Parser.js:77:12)\r\n    at Protocol.write (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/protocol/Protocol.js:39:16)\r\n    at Socket.<anonymous> (/opt/eplite/etherpad-lite-dev/src/node_modules/ueberDB/node_modules/mysql/lib/Connection.js:82:28)\r\n    at Socket.emit (events.js:95:17)\r\n```\r\nAfter that the instance shutting down. I don't know how invalid JSON is getting into the DB, but shutting down the server cause of this problem is very bad.\r\nKnowing which pads causing this error can lead to a DoS..."},"comment":{"url":"https://api.github.com/repos/ether/etherpad-lite/issues/comments/117612693","html_url":"https://github.com/ether/etherpad-lite/issues/2522#issuecomment-117612693","issue_url":"https://api.github.com/repos/ether/etherpad-lite/issues/2522","id":117612693,"user":{"login":"JohnMcLear","id":220864,"avatar_url":"https://avatars.githubusercontent.com/u/220864?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnMcLear","html_url":"https://github.com/JohnMcLear","followers_url":"https://api.github.com/users/JohnMcLear/followers","following_url":"https://api.github.com/users/JohnMcLear/following{/other_user}","gists_url":"https://api.github.com/users/JohnMcLear/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnMcLear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnMcLear/subscriptions","organizations_url":"https://api.github.com/users/JohnMcLear/orgs","repos_url":"https://api.github.com/users/JohnMcLear/repos","events_url":"https://api.github.com/users/JohnMcLear/events{/privacy}","received_events_url":"https://api.github.com/users/JohnMcLear/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T11:14:42Z","updated_at":"2015-07-01T11:14:42Z","body":"cc @webzwo0i "}}