{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/1850","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/1850/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/1850/events","html_url":"https://github.com/aspnet/Mvc/issues/1850","id":54925229,"number":1850,"title":"Produces attribute with wild card media type ignores content-negotiation","user":{"login":"kichalla","id":6559784,"avatar_url":"https://avatars.githubusercontent.com/u/6559784?v=3","gravatar_id":"","url":"https://api.github.com/users/kichalla","html_url":"https://github.com/kichalla","followers_url":"https://api.github.com/users/kichalla/followers","following_url":"https://api.github.com/users/kichalla/following{/other_user}","gists_url":"https://api.github.com/users/kichalla/gists{/gist_id}","starred_url":"https://api.github.com/users/kichalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kichalla/subscriptions","organizations_url":"https://api.github.com/users/kichalla/orgs","repos_url":"https://api.github.com/users/kichalla/repos","events_url":"https://api.github.com/users/kichalla/events{/privacy}","received_events_url":"https://api.github.com/users/kichalla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/aspnet/Mvc/milestones/14","labels_url":"https://api.github.com/repos/aspnet/Mvc/milestones/14/labels","id":929400,"number":14,"title":"6.0.0-rc1","description":"","creator":{"login":"danroth27","id":1874516,"avatar_url":"https://avatars.githubusercontent.com/u/1874516?v=3","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"open_issues":178,"closed_issues":3,"state":"open","created_at":"2015-01-09T23:08:53Z","updated_at":"2015-01-20T19:10:33Z","due_on":"2015-03-23T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-01-20T19:10:22Z","updated_at":"2015-01-20T19:30:06Z","closed_at":null,"body":"For the following action and request, was expecting an Xml based response but I see a Json response.\r\n\r\n```c#\r\n[Produces(\"*/*\", Type = typeof(Person))]\r\npublic IActionResult Foo()\r\n{\r\n    return new ObjectResult(new Person()\r\n    {\r\n        Name = \"mike\",\r\n        Id = 10\r\n    });\r\n}\r\n```\r\nRequest:\r\n```\r\nGET http://localhost:49643/home/foo HTTP/1.1\r\nUser-Agent: Fiddler\r\nHost: localhost:49643\r\nAccept: application/xml\r\n```\r\n\r\n\r\nLines of code interesting for this case:\r\nhttps://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs#L144\r\nhttps://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.Core/ActionResults/ObjectResult.cs#L212"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/70716349","html_url":"https://github.com/aspnet/Mvc/issues/1850#issuecomment-70716349","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/1850","id":70716349,"user":{"login":"harshgMSFT","id":6729943,"avatar_url":"https://avatars.githubusercontent.com/u/6729943?v=3","gravatar_id":"","url":"https://api.github.com/users/harshgMSFT","html_url":"https://github.com/harshgMSFT","followers_url":"https://api.github.com/users/harshgMSFT/followers","following_url":"https://api.github.com/users/harshgMSFT/following{/other_user}","gists_url":"https://api.github.com/users/harshgMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/harshgMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshgMSFT/subscriptions","organizations_url":"https://api.github.com/users/harshgMSFT/orgs","repos_url":"https://api.github.com/users/harshgMSFT/repos","events_url":"https://api.github.com/users/harshgMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/harshgMSFT/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T19:30:06Z","updated_at":"2015-01-20T19:30:06Z","body":"i'd expect\r\n```[Produces(\"*/*\", Type = typeof(Person))]``` \r\nshould not be a supported scenario specifically after we have solved #1065, there should be no need for a user to specify */* and we should probably block it. \r\n\r\nfor \r\n```[Produces(\"application/*\", Type = typeof(Person))]```\r\nI would expect content negotiation to kick in and we should fix this."}}