{"action":"created","comment":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/217905043","pull_request_review_id":155735123,"id":217905043,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzkwNTA0Mw==","diff_hunk":"@@ -1047,6 +1047,28 @@ angular.module('syncthing.core')\n             return deviceCfg.deviceID.substr(0, 6);\n         };\n \n+        $scope.getSupportBundle = function (){\n+            $http.get(urlbase + '/system/support', {responseType: 'arraybuffer'})","path":"gui/default/syncthing/core/syncthingController.js","position":5,"original_position":5,"commit_id":"5b543b3acd352e1366ab076d920997aba36269d0","original_commit_id":"5b543b3acd352e1366ab076d920997aba36269d0","user":{"login":"calmh","id":125426,"node_id":"MDQ6VXNlcjEyNTQyNg==","avatar_url":"https://avatars3.githubusercontent.com/u/125426?v=4","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"body":"OK OK, I was confused, sorry. The endpoints under `/rest/debug` require authentication as much as anything else, but indeed don't have the CSRF requirement. So yes, you are right, the best place for this is under `/rest/debug/support.zip` or something like that, and will require enabling debugging to get. I think that's an acceptable extra step.","created_at":"2018-09-16T07:29:42Z","updated_at":"2018-09-16T07:29:42Z","html_url":"https://github.com/syncthing/syncthing/pull/5145#discussion_r217905043","pull_request_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5145","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/217905043"},"html":{"href":"https://github.com/syncthing/syncthing/pull/5145#discussion_r217905043"},"pull_request":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5145"}},"in_reply_to_id":217445447},"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/5145","id":210915964,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTE1OTY0","html_url":"https://github.com/syncthing/syncthing/pull/5145","diff_url":"https://github.com/syncthing/syncthing/pull/5145.diff","patch_url":"https://github.com/syncthing/syncthing/pull/5145.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/5145","number":5145,"state":"open","locked":false,"title":"\"Support bundle\" download #5142","user":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"body":"### Purpose\r\nTo add a button, \"SupportBundle\", on GUI that downloads some info for a support people. Issue number #5142 \r\n### Testing\r\nNone.\r\n\r\n### Screenshots\r\nSupportBundle button added under Actions section.\r\n\r\n<img width=\"1020\" alt=\"button_supportbundle\" src=\"https://user-images.githubusercontent.com/29825419/44620901-5988ae00-a8a5-11e8-9809-d0cfcab2fc88.png\">\r\n\r\nClicking SupportBundle button makes two things. First one is open a window to saveas zip file and the second is save same zip file under the Syncthing base folder under the created support_bundle folder.\r\n\r\n<img width=\"988\" alt=\"save_window\" src=\"https://user-images.githubusercontent.com/29825419/44620931-f77c7880-a8a5-11e8-8d3c-bc9253c83f0a.png\">\r\n\r\nZip file named as support_bundle + timestamp\r\n<img width=\"906\" alt=\"saved_zip\" src=\"https://user-images.githubusercontent.com/29825419/44620933-f9ded280-a8a5-11e8-91e2-0c6e362e232f.png\">\r\n\r\nUnder the saved zip there are 4 files. (The files will be added for further needs)\r\n<img width=\"615\" alt=\"saved_files\" src=\"https://user-images.githubusercontent.com/29825419/44620942-2397f980-a8a6-11e8-81a0-a0ce253f4b67.png\">\r\n\r\n## Authorship\r\ngit config --global user.name \"Bahadir Yilmaz\"\r\ngit config --global user.email \"bahadiryilmaz@yahoo.com\"\r\n\r\n","created_at":"2018-08-25T18:44:02Z","updated_at":"2018-09-16T07:29:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8faaef0261c178342373138a28b1c5f37412ad45","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5145/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/5145/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/5145/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/5b543b3acd352e1366ab076d920997aba36269d0","head":{"label":"bahadir60:bh-5142","ref":"bh-5142","sha":"5b543b3acd352e1366ab076d920997aba36269d0","user":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"repo":{"id":138065395,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwNjUzOTU=","name":"syncthing","full_name":"bahadir60/syncthing","private":false,"owner":{"login":"bahadir60","id":29825419,"node_id":"MDQ6VXNlcjI5ODI1NDE5","avatar_url":"https://avatars3.githubusercontent.com/u/29825419?v=4","gravatar_id":"","url":"https://api.github.com/users/bahadir60","html_url":"https://github.com/bahadir60","followers_url":"https://api.github.com/users/bahadir60/followers","following_url":"https://api.github.com/users/bahadir60/following{/other_user}","gists_url":"https://api.github.com/users/bahadir60/gists{/gist_id}","starred_url":"https://api.github.com/users/bahadir60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahadir60/subscriptions","organizations_url":"https://api.github.com/users/bahadir60/orgs","repos_url":"https://api.github.com/users/bahadir60/repos","events_url":"https://api.github.com/users/bahadir60/events{/privacy}","received_events_url":"https://api.github.com/users/bahadir60/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bahadir60/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/bahadir60/syncthing","forks_url":"https://api.github.com/repos/bahadir60/syncthing/forks","keys_url":"https://api.github.com/repos/bahadir60/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bahadir60/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bahadir60/syncthing/teams","hooks_url":"https://api.github.com/repos/bahadir60/syncthing/hooks","issue_events_url":"https://api.github.com/repos/bahadir60/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/bahadir60/syncthing/events","assignees_url":"https://api.github.com/repos/bahadir60/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/bahadir60/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/bahadir60/syncthing/tags","blobs_url":"https://api.github.com/repos/bahadir60/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bahadir60/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bahadir60/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/bahadir60/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bahadir60/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/bahadir60/syncthing/languages","stargazers_url":"https://api.github.com/repos/bahadir60/syncthing/stargazers","contributors_url":"https://api.github.com/repos/bahadir60/syncthing/contributors","subscribers_url":"https://api.github.com/repos/bahadir60/syncthing/subscribers","subscription_url":"https://api.github.com/repos/bahadir60/syncthing/subscription","commits_url":"https://api.github.com/repos/bahadir60/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/bahadir60/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/bahadir60/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/bahadir60/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/bahadir60/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/bahadir60/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bahadir60/syncthing/merges","archive_url":"https://api.github.com/repos/bahadir60/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bahadir60/syncthing/downloads","issues_url":"https://api.github.com/repos/bahadir60/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/bahadir60/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/bahadir60/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/bahadir60/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bahadir60/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/bahadir60/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/bahadir60/syncthing/deployments","created_at":"2018-06-20T17:34:06Z","updated_at":"2018-09-13T15:11:46Z","pushed_at":"2018-09-13T15:26:28Z","git_url":"git://github.com/bahadir60/syncthing.git","ssh_url":"git@github.com:bahadir60/syncthing.git","clone_url":"https://github.com/bahadir60/syncthing.git","svn_url":"https://github.com/bahadir60/syncthing","homepage":"https://forum.syncthing.net/","size":97197,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"syncthing:master","ref":"master","sha":"49d5eae66a979596a229ce1ac95cfc7da11e4bf8","user":{"login":"syncthing","id":7628018,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MjgwMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7628018?v=4","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":14712850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcxMjg1MA==","name":"syncthing","full_name":"syncthing/syncthing","private":false,"owner":{"login":"syncthing","id":7628018,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MjgwMTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7628018?v=4","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/syncthing/syncthing","description":"Open Source Continuous File Synchronization","fork":false,"url":"https://api.github.com/repos/syncthing/syncthing","forks_url":"https://api.github.com/repos/syncthing/syncthing/forks","keys_url":"https://api.github.com/repos/syncthing/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/syncthing/teams","hooks_url":"https://api.github.com/repos/syncthing/syncthing/hooks","issue_events_url":"https://api.github.com/repos/syncthing/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/syncthing/events","assignees_url":"https://api.github.com/repos/syncthing/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/syncthing/tags","blobs_url":"https://api.github.com/repos/syncthing/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/syncthing/languages","stargazers_url":"https://api.github.com/repos/syncthing/syncthing/stargazers","contributors_url":"https://api.github.com/repos/syncthing/syncthing/contributors","subscribers_url":"https://api.github.com/repos/syncthing/syncthing/subscribers","subscription_url":"https://api.github.com/repos/syncthing/syncthing/subscription","commits_url":"https://api.github.com/repos/syncthing/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/syncthing/merges","archive_url":"https://api.github.com/repos/syncthing/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/syncthing/downloads","issues_url":"https://api.github.com/repos/syncthing/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/syncthing/syncthing/deployments","created_at":"2013-11-26T09:48:21Z","updated_at":"2018-09-16T04:20:31Z","pushed_at":"2018-09-15T19:30:57Z","git_url":"git://github.com/syncthing/syncthing.git","ssh_url":"git@github.com:syncthing/syncthing.git","clone_url":"https://github.com/syncthing/syncthing.git","svn_url":"https://github.com/syncthing/syncthing","homepage":"https://forum.syncthing.net/","size":97273,"stargazers_count":21926,"watchers_count":21926,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1866,"mirror_url":null,"archived":false,"open_issues_count":249,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":1866,"open_issues":249,"watchers":21926,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5145"},"html":{"href":"https://github.com/syncthing/syncthing/pull/5145"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/5145"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/5145/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5145/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/5145/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/5b543b3acd352e1366ab076d920997aba36269d0"}},"author_association":"NONE"}}
{"actor":{"display_login":"calmh"}}