{"action":"closed","issue":{"url":"https://api.github.com/repos/coopcycle/coopcycle-web/issues/561","repository_url":"https://api.github.com/repos/coopcycle/coopcycle-web","labels_url":"https://api.github.com/repos/coopcycle/coopcycle-web/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/coopcycle/coopcycle-web/issues/561/comments","events_url":"https://api.github.com/repos/coopcycle/coopcycle-web/issues/561/events","html_url":"https://github.com/coopcycle/coopcycle-web/issues/561","id":453924983,"node_id":"MDU6SXNzdWU0NTM5MjQ5ODM=","number":561,"title":"MaintenanceListener shouldn't allow app to make requests","user":{"login":"alexsegura","id":1162230,"node_id":"MDQ6VXNlcjExNjIyMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1162230?v=4","gravatar_id":"","url":"https://api.github.com/users/alexsegura","html_url":"https://github.com/alexsegura","followers_url":"https://api.github.com/users/alexsegura/followers","following_url":"https://api.github.com/users/alexsegura/following{/other_user}","gists_url":"https://api.github.com/users/alexsegura/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsegura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsegura/subscriptions","organizations_url":"https://api.github.com/users/alexsegura/orgs","repos_url":"https://api.github.com/users/alexsegura/repos","events_url":"https://api.github.com/users/alexsegura/events{/privacy}","received_events_url":"https://api.github.com/users/alexsegura/received_events","type":"User","site_admin":false},"labels":[{"id":490931119,"node_id":"MDU6TGFiZWw0OTA5MzExMTk=","url":"https://api.github.com/repos/coopcycle/coopcycle-web/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-09T18:27:29Z","updated_at":"2019-06-10T07:10:25Z","closed_at":"2019-06-10T07:10:25Z","author_association":"MEMBER","body":"When the platform is in maintenance mode, the HTTP calls issued by the app are allowed: it is because the app uses the user-agent `okhttp`, which is seen as a crawler. \r\n\r\nAs a quick fix, `MaintenanceListener` should check specifically for this user-agent, and send HTTP 503 as well. "}}
{"actor":{"display_login":"alexsegura"}}