{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Hosting/issues/527","labels_url":"https://api.github.com/repos/aspnet/Hosting/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Hosting/issues/527/comments","events_url":"https://api.github.com/repos/aspnet/Hosting/issues/527/events","html_url":"https://github.com/aspnet/Hosting/issues/527","id":122814154,"number":527,"title":"HostingEnvironmentExtensions.MapPath should use IFileProvider","user":{"login":"lodejard","id":1693989,"avatar_url":"https://avatars.githubusercontent.com/u/1693989?v=3","gravatar_id":"","url":"https://api.github.com/users/lodejard","html_url":"https://github.com/lodejard","followers_url":"https://api.github.com/users/lodejard/followers","following_url":"https://api.github.com/users/lodejard/following{/other_user}","gists_url":"https://api.github.com/users/lodejard/gists{/gist_id}","starred_url":"https://api.github.com/users/lodejard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lodejard/subscriptions","organizations_url":"https://api.github.com/users/lodejard/orgs","repos_url":"https://api.github.com/users/lodejard/repos","events_url":"https://api.github.com/users/lodejard/events{/privacy}","received_events_url":"https://api.github.com/users/lodejard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Hosting/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/Hosting/milestones/18","html_url":"https://github.com/aspnet/Hosting/milestones/1.0.0-rc2","labels_url":"https://api.github.com/repos/aspnet/Hosting/milestones/18/labels","id":1371266,"number":18,"title":"1.0.0-rc2","description":null,"creator":{"login":"muratg","id":1808428,"avatar_url":"https://avatars.githubusercontent.com/u/1808428?v=3","gravatar_id":"","url":"https://api.github.com/users/muratg","html_url":"https://github.com/muratg","followers_url":"https://api.github.com/users/muratg/followers","following_url":"https://api.github.com/users/muratg/following{/other_user}","gists_url":"https://api.github.com/users/muratg/gists{/gist_id}","starred_url":"https://api.github.com/users/muratg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratg/subscriptions","organizations_url":"https://api.github.com/users/muratg/orgs","repos_url":"https://api.github.com/users/muratg/repos","events_url":"https://api.github.com/users/muratg/events{/privacy}","received_events_url":"https://api.github.com/users/muratg/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":32,"state":"open","created_at":"2015-10-22T21:04:09Z","updated_at":"2016-01-05T15:02:16Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-12-17T20:12:45Z","updated_at":"2016-01-06T20:25:12Z","closed_at":null,"body":"The extension method should not use the base physical path and path.combine, it defeats the purpose of having an IFileProvider on the hosting environment interface at all.\r\n\r\nInstead it should call GetFileInfo and return fileInfo.PhysicalPath if not null or empty.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Hosting/issues/comments/169450987","html_url":"https://github.com/aspnet/Hosting/issues/527#issuecomment-169450987","issue_url":"https://api.github.com/repos/aspnet/Hosting/issues/527","id":169450987,"user":{"login":"Tratcher","id":1821173,"avatar_url":"https://avatars.githubusercontent.com/u/1821173?v=3","gravatar_id":"","url":"https://api.github.com/users/Tratcher","html_url":"https://github.com/Tratcher","followers_url":"https://api.github.com/users/Tratcher/followers","following_url":"https://api.github.com/users/Tratcher/following{/other_user}","gists_url":"https://api.github.com/users/Tratcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Tratcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tratcher/subscriptions","organizations_url":"https://api.github.com/users/Tratcher/orgs","repos_url":"https://api.github.com/users/Tratcher/repos","events_url":"https://api.github.com/users/Tratcher/events{/privacy}","received_events_url":"https://api.github.com/users/Tratcher/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T20:25:11Z","updated_at":"2016-01-06T20:25:11Z","body":"Here: https://github.com/aspnet/Hosting/blob/f600604140e048df7671fa6e196791492ecacbe1/src/Microsoft.AspNet.Hosting.Abstractions/HostingEnvironmentExtensions.cs#L104-L105\r\n\r\nSomething like this?\r\n`return hostingEnvironment.WebRootFileProvider.GetFileInfo(virtualPath).PhysicalPath;`\r\n\r\nWho are the actual consumers for this API? Is the input expected to be something like `httpContext.Request.Path`?"}}