{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cxf/issues/89","labels_url":"https://api.github.com/repos/apache/cxf/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/apache/cxf/issues/89/comments","events_url":"https://api.github.com/repos/apache/cxf/issues/89/events","html_url":"https://github.com/apache/cxf/pull/89","id":107507722,"number":89,"title":"Fix index out of bounds crash in HttpHeaderHelper.findCharset","user":{"login":"emlun","id":1367758,"avatar_url":"https://avatars.githubusercontent.com/u/1367758?v=3","gravatar_id":"","url":"https://api.github.com/users/emlun","html_url":"https://github.com/emlun","followers_url":"https://api.github.com/users/emlun/followers","following_url":"https://api.github.com/users/emlun/following{/other_user}","gists_url":"https://api.github.com/users/emlun/gists{/gist_id}","starred_url":"https://api.github.com/users/emlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emlun/subscriptions","organizations_url":"https://api.github.com/users/emlun/orgs","repos_url":"https://api.github.com/users/emlun/repos","events_url":"https://api.github.com/users/emlun/events{/privacy}","received_events_url":"https://api.github.com/users/emlun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-21T13:07:59Z","updated_at":"2015-10-26T10:07:05Z","closed_at":"2015-10-08T20:28:12Z","pull_request":{"url":"https://api.github.com/repos/apache/cxf/pulls/89","html_url":"https://github.com/apache/cxf/pull/89","diff_url":"https://github.com/apache/cxf/pull/89.diff","patch_url":"https://github.com/apache/cxf/pull/89.patch"},"body":"Sending an HTTP request with the header `\"Content-Type: foo/bar; charset=\"`\r\nwould previously make this method throw a `StringIndexOutOfBoundsException`\r\nthat would go uncaught and cause a 500 response:\r\n\r\n    java.lang.StringIndexOutOfBoundsException: String index out of range: 0\r\n            at java.lang.String.charAt(String.java:658)\r\n            at org.apache.cxf.helpers.HttpHeaderHelper.findCharset(HttpHeaderHelper.java:90)"},"comment":{"url":"https://api.github.com/repos/apache/cxf/issues/comments/151088542","html_url":"https://github.com/apache/cxf/pull/89#issuecomment-151088542","issue_url":"https://api.github.com/repos/apache/cxf/issues/89","id":151088542,"user":{"login":"elakito","id":1558648,"avatar_url":"https://avatars.githubusercontent.com/u/1558648?v=3","gravatar_id":"","url":"https://api.github.com/users/elakito","html_url":"https://github.com/elakito","followers_url":"https://api.github.com/users/elakito/followers","following_url":"https://api.github.com/users/elakito/following{/other_user}","gists_url":"https://api.github.com/users/elakito/gists{/gist_id}","starred_url":"https://api.github.com/users/elakito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elakito/subscriptions","organizations_url":"https://api.github.com/users/elakito/orgs","repos_url":"https://api.github.com/users/elakito/repos","events_url":"https://api.github.com/users/elakito/events{/privacy}","received_events_url":"https://api.github.com/users/elakito/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T10:07:05Z","updated_at":"2015-10-26T10:07:05Z","body":"isn't this patch encouraging the invalid charset parameter usage?\r\n\r\nSIOOBE was bad but shouldn't we be throwing some invalidity exception or at least write a WARN log to signal potentially the content may not be correctly decoded?\r\n"}}