{"action":"opened","issue":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1419","repository_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1419/labels{/name}","comments_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1419/comments","events_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1419/events","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1419","id":136220168,"number":1419,"title":"Feed format: Returns empty file for empty query result","user":{"login":"s7eph4n","id":2829850,"avatar_url":"https://avatars.githubusercontent.com/u/2829850?v=3","gravatar_id":"","url":"https://api.github.com/users/s7eph4n","html_url":"https://github.com/s7eph4n","followers_url":"https://api.github.com/users/s7eph4n/followers","following_url":"https://api.github.com/users/s7eph4n/following{/other_user}","gists_url":"https://api.github.com/users/s7eph4n/gists{/gist_id}","starred_url":"https://api.github.com/users/s7eph4n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s7eph4n/subscriptions","organizations_url":"https://api.github.com/users/s7eph4n/orgs","repos_url":"https://api.github.com/users/s7eph4n/repos","events_url":"https://api.github.com/users/s7eph4n/events{/privacy}","received_events_url":"https://api.github.com/users/s7eph4n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-24T23:16:21Z","updated_at":"2016-02-24T23:16:21Z","closed_at":null,"body":"When a query returns a result with 0 entries the feed format will return an empty file (looks like an HTTP 500, but isn't).\r\nI don't know the spec for RSS, so this may actually be correct behavior, but intuitively I would have expected some valid XML, just without any entries. Something like\r\n\r\n``` XML\r\n<?xml version=\"1.0\"?>\r\n<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">\r\n\t<channel>\r\n\t\t<title>Testwiki</title>\r\n\t\t<link>http://127.0.0.1/mw/index.php/Special:Ask</link>\r\n\t\t<description>From Testwiki</description>\r\n\t\t<language>en</language>\r\n\t\t<generator>MediaWiki 1.27alpha</generator>\r\n\t\t<lastBuildDate>Wed, 24 Feb 2016 23:04:48 GMT</lastBuildDate>\r\n\t</channel>\r\n</rss>\r\n```\r\n"}}