{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10974","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10974/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10974/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10974/events","html_url":"https://github.com/elastic/elasticsearch/issues/10974","id":73254223,"number":10974,"title":"Add testing for invalid XContent queries","user":{"login":"cbuescher","id":10398885,"avatar_url":"https://avatars.githubusercontent.com/u/10398885?v=3","gravatar_id":"","url":"https://api.github.com/users/cbuescher","html_url":"https://github.com/cbuescher","followers_url":"https://api.github.com/users/cbuescher/followers","following_url":"https://api.github.com/users/cbuescher/following{/other_user}","gists_url":"https://api.github.com/users/cbuescher/gists{/gist_id}","starred_url":"https://api.github.com/users/cbuescher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbuescher/subscriptions","organizations_url":"https://api.github.com/users/cbuescher/orgs","repos_url":"https://api.github.com/users/cbuescher/repos","events_url":"https://api.github.com/users/cbuescher/events{/privacy}","received_events_url":"https://api.github.com/users/cbuescher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Query%20Refactoring","name":":Query Refactoring","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-05T09:06:28Z","updated_at":"2015-05-05T09:06:28Z","closed_at":null,"body":"The query parsers already check for problems XContent (e.g. missing fieldnames, wrong token types) in many places. We should investigate if it is possible to have some generic tests in the BaseQueryTestCase that check for expected exceptions and other things that happen when parsing invalid json.\r\n"}}