{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/gallery/issues/619","repository_url":"https://api.github.com/repos/owncloud/gallery","labels_url":"https://api.github.com/repos/owncloud/gallery/issues/619/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/gallery/issues/619/comments","events_url":"https://api.github.com/repos/owncloud/gallery/issues/619/events","html_url":"https://github.com/owncloud/gallery/issues/619","id":142985149,"number":619,"title":"galleryfileaction.js causes redirect loop if used in unauthenticaed route","user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/gallery/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-23T15:03:08Z","updated_at":"2016-03-24T11:44:43Z","closed_at":null,"body":"## Bug report\r\n\r\n### Steps to reproduce\r\n\r\n1. Have an app `files_foo` that has a public route.\r\n2. Access that route\r\n\r\n### Expected behaviour\r\nAll is fine\r\n\r\n### Actual behaviour\r\nPage gets reloaded over and over again.\r\n\r\nThis happens because of \r\n\r\n1. https://github.com/owncloud/gallery/blob/master/appinfo/app.php#L65\r\n2. which loads https://github.com/owncloud/gallery/blob/master/appinfo/app.php#L75\r\n3. which in turn does https://github.com/owncloud/gallery/blob/master/js/galleryfileaction.js#L214-L218\r\n4. Which fails with a 401\r\n5. which is then caught globally and reloads\r\n\r\nEasies solution is probabaly to set `allowAuthErrors` https://github.com/owncloud/core/blob/v9.0.0/core/js/js.js#L1442\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32182099-galleryfileaction-js-causes-redirect-loop-if-used-in-unauthenticaed-route?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F9328526&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/owncloud/gallery/issues/comments/200801304","html_url":"https://github.com/owncloud/gallery/issues/619#issuecomment-200801304","issue_url":"https://api.github.com/repos/owncloud/gallery/issues/619","id":200801304,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:44:43Z","updated_at":"2016-03-24T11:44:43Z","body":"@PVince81 - The regexp doesn't match `files_xxx`"}}