{"action":"created","issue":{"url":"https://api.github.com/repos/google/guava/issues/2994","repository_url":"https://api.github.com/repos/google/guava","labels_url":"https://api.github.com/repos/google/guava/issues/2994/labels{/name}","comments_url":"https://api.github.com/repos/google/guava/issues/2994/comments","events_url":"https://api.github.com/repos/google/guava/issues/2994/events","html_url":"https://github.com/google/guava/issues/2994","id":274092486,"number":2994,"title":"MediaType parse bug","user":{"login":"Kawabaumga","id":10085123,"avatar_url":"https://avatars0.githubusercontent.com/u/10085123?v=4","gravatar_id":"","url":"https://api.github.com/users/Kawabaumga","html_url":"https://github.com/Kawabaumga","followers_url":"https://api.github.com/users/Kawabaumga/followers","following_url":"https://api.github.com/users/Kawabaumga/following{/other_user}","gists_url":"https://api.github.com/users/Kawabaumga/gists{/gist_id}","starred_url":"https://api.github.com/users/Kawabaumga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kawabaumga/subscriptions","organizations_url":"https://api.github.com/users/Kawabaumga/orgs","repos_url":"https://api.github.com/users/Kawabaumga/repos","events_url":"https://api.github.com/users/Kawabaumga/events{/privacy}","received_events_url":"https://api.github.com/users/Kawabaumga/received_events","type":"User","site_admin":false},"labels":[{"id":143504951,"url":"https://api.github.com/repos/google/guava/labels/package:%20net","name":"package: net","color":"207de5","default":false},{"id":143499063,"url":"https://api.github.com/repos/google/guava/labels/type:%20defect","name":"type: defect","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T09:43:42Z","updated_at":"2017-11-15T15:35:55Z","closed_at":null,"author_association":"NONE","body":"Hi all,\r\n\r\nI am facing something I'm calling a bug with the method parse from the class MediaType.\r\nThe method raises an exception if I parse the string \"application/toto\" what is correct.\r\nThe method don't raise any exception if I parse the string \"application/pdf\" what is also correct.\r\nHowever, the method don't raise any exception if I parse the string \"application/p\" what is not a mime type.\r\n\r\nDid I miss something?\r\n\r\nYours sincerely,\r\nJulien BAUMGARTEN"},"comment":{"url":"https://api.github.com/repos/google/guava/issues/comments/344630269","html_url":"https://github.com/google/guava/issues/2994#issuecomment-344630269","issue_url":"https://api.github.com/repos/google/guava/issues/2994","id":344630269,"user":{"login":"kluever","id":2036304,"avatar_url":"https://avatars1.githubusercontent.com/u/2036304?v=4","gravatar_id":"","url":"https://api.github.com/users/kluever","html_url":"https://github.com/kluever","followers_url":"https://api.github.com/users/kluever/followers","following_url":"https://api.github.com/users/kluever/following{/other_user}","gists_url":"https://api.github.com/users/kluever/gists{/gist_id}","starred_url":"https://api.github.com/users/kluever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kluever/subscriptions","organizations_url":"https://api.github.com/users/kluever/orgs","repos_url":"https://api.github.com/users/kluever/repos","events_url":"https://api.github.com/users/kluever/events{/privacy}","received_events_url":"https://api.github.com/users/kluever/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T15:35:55Z","updated_at":"2017-11-15T15:35:55Z","author_association":"MEMBER","body":"What version of Guava are you using? This test passes at head:\r\n\r\n```\r\n  public void testIssue2994() {\r\n    assertThat(MediaType.parse(\"application/pdf\")).isNotNull();\r\n    assertThat(MediaType.parse(\"application/p\")).isNotNull();\r\n    assertThat(MediaType.parse(\"application/toto\")).isNotNull();\r\n  }\r\n```"}}
{"actor":{"display_login":"kluever"}}