{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4060","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4060/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4060/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4060/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4060","id":65900000,"number":4060,"title":"FIX Files should only report as \"existing\" if the file actually exists","user":{"login":"dhensby","id":563596,"avatar_url":"https://avatars.githubusercontent.com/u/563596?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensby","html_url":"https://github.com/dhensby","followers_url":"https://api.github.com/users/dhensby/followers","following_url":"https://api.github.com/users/dhensby/following{/other_user}","gists_url":"https://api.github.com/users/dhensby/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensby/subscriptions","organizations_url":"https://api.github.com/users/dhensby/orgs","repos_url":"https://api.github.com/users/dhensby/repos","events_url":"https://api.github.com/users/dhensby/events{/privacy}","received_events_url":"https://api.github.com/users/dhensby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-02T10:30:15Z","updated_at":"2015-04-10T13:00:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/4060","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4060","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/4060.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/4060.patch"},"body":"This fixes an issue where images and files that have models in the DB but no actual file on the filesystem still report as existing.\r\n\r\nFixes this case where there would be no output:\r\n\r\n```html\r\n<% if $Image %>\r\n    $image\r\n<% else %>\r\n   <img src=\"holder.jpg\"/>\r\n<% end_if %>\r\n```"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/91547240","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/4060#issuecomment-91547240","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/4060","id":91547240,"user":{"login":"dhensby","id":563596,"avatar_url":"https://avatars.githubusercontent.com/u/563596?v=3","gravatar_id":"","url":"https://api.github.com/users/dhensby","html_url":"https://github.com/dhensby","followers_url":"https://api.github.com/users/dhensby/followers","following_url":"https://api.github.com/users/dhensby/following{/other_user}","gists_url":"https://api.github.com/users/dhensby/gists{/gist_id}","starred_url":"https://api.github.com/users/dhensby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhensby/subscriptions","organizations_url":"https://api.github.com/users/dhensby/orgs","repos_url":"https://api.github.com/users/dhensby/repos","events_url":"https://api.github.com/users/dhensby/events{/privacy}","received_events_url":"https://api.github.com/users/dhensby/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T13:00:35Z","updated_at":"2015-04-10T13:00:35Z","body":"My argument to that is: The `exists()` method returning true in that instance is a bug and you've written code to mitigate that bug.\r\n\r\nWe'd basically never release a patch ever if our argument to bug fixes was \"but someone could have mitigated it so it's a breaking change\""}}