{"action":"created","comment":{"url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/comments/44158474","id":44158474,"diff_hunk":"@@ -551,6 +551,15 @@ def check_dir_listing_content_type(content_type)\n \n         [401, 403].must_include res.code\n       end\n+\n+      it \"doesn't expose if folder is empty\" do\n+        res = do_get_request(\"public/#{CONFIG[:category]}/\", authorization: nil)\n+        res2 = do_get_request(\"public/#{CONFIG[:category]}/foo/\", authorization: nil)\n+\n+        res.code.must_equal res2.code\n+        res.headers.must_equal res2.headers","path":"api_spec.rb","position":10,"original_position":10,"commit_id":"e61573b4efc96b713cb01d64f3dc2aae076b5e69","original_commit_id":"e61573b4efc96b713cb01d64f3dc2aae076b5e69","user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"body":"Should 403/401 responses ever contain those?","created_at":"2015-11-06T16:45:34Z","updated_at":"2015-11-06T16:45:34Z","html_url":"https://github.com/remotestorage/api-test-suite/pull/29#discussion_r44158474","pull_request_url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/comments/44158474"},"html":{"href":"https://github.com/remotestorage/api-test-suite/pull/29#discussion_r44158474"},"pull_request":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29","id":49972231,"html_url":"https://github.com/remotestorage/api-test-suite/pull/29","diff_url":"https://github.com/remotestorage/api-test-suite/pull/29.diff","patch_url":"https://github.com/remotestorage/api-test-suite/pull/29.patch","issue_url":"https://api.github.com/repos/remotestorage/api-test-suite/issues/29","number":29,"state":"open","locked":false,"title":"Test whether empty folders are exposed as such for anon users","user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"body":"Slight differences in the response might make bruteforce of secret URLs\neasier.\n\nSee https://www.ibuildings.nl/blog/2015/11/hidden-plain-sight-brute-forcing-slack-private-files","created_at":"2015-11-06T16:13:30Z","updated_at":"2015-11-06T16:45:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d5531c480a8cc5b2b21500b9d5fcc374d3b9da5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29/commits","review_comments_url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29/comments","review_comment_url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/remotestorage/api-test-suite/issues/29/comments","statuses_url":"https://api.github.com/repos/remotestorage/api-test-suite/statuses/e61573b4efc96b713cb01d64f3dc2aae076b5e69","head":{"label":"untitaker:anon-users-empty-folders","ref":"anon-users-empty-folders","sha":"e61573b4efc96b713cb01d64f3dc2aae076b5e69","user":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"repo":{"id":45692510,"name":"api-test-suite","full_name":"untitaker/api-test-suite","owner":{"login":"untitaker","id":837573,"avatar_url":"https://avatars.githubusercontent.com/u/837573?v=3","gravatar_id":"","url":"https://api.github.com/users/untitaker","html_url":"https://github.com/untitaker","followers_url":"https://api.github.com/users/untitaker/followers","following_url":"https://api.github.com/users/untitaker/following{/other_user}","gists_url":"https://api.github.com/users/untitaker/gists{/gist_id}","starred_url":"https://api.github.com/users/untitaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untitaker/subscriptions","organizations_url":"https://api.github.com/users/untitaker/orgs","repos_url":"https://api.github.com/users/untitaker/repos","events_url":"https://api.github.com/users/untitaker/events{/privacy}","received_events_url":"https://api.github.com/users/untitaker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/untitaker/api-test-suite","description":"Test suite for RS server REST APIs","fork":true,"url":"https://api.github.com/repos/untitaker/api-test-suite","forks_url":"https://api.github.com/repos/untitaker/api-test-suite/forks","keys_url":"https://api.github.com/repos/untitaker/api-test-suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/untitaker/api-test-suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/untitaker/api-test-suite/teams","hooks_url":"https://api.github.com/repos/untitaker/api-test-suite/hooks","issue_events_url":"https://api.github.com/repos/untitaker/api-test-suite/issues/events{/number}","events_url":"https://api.github.com/repos/untitaker/api-test-suite/events","assignees_url":"https://api.github.com/repos/untitaker/api-test-suite/assignees{/user}","branches_url":"https://api.github.com/repos/untitaker/api-test-suite/branches{/branch}","tags_url":"https://api.github.com/repos/untitaker/api-test-suite/tags","blobs_url":"https://api.github.com/repos/untitaker/api-test-suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/untitaker/api-test-suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/untitaker/api-test-suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/untitaker/api-test-suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/untitaker/api-test-suite/statuses/{sha}","languages_url":"https://api.github.com/repos/untitaker/api-test-suite/languages","stargazers_url":"https://api.github.com/repos/untitaker/api-test-suite/stargazers","contributors_url":"https://api.github.com/repos/untitaker/api-test-suite/contributors","subscribers_url":"https://api.github.com/repos/untitaker/api-test-suite/subscribers","subscription_url":"https://api.github.com/repos/untitaker/api-test-suite/subscription","commits_url":"https://api.github.com/repos/untitaker/api-test-suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/untitaker/api-test-suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/untitaker/api-test-suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/untitaker/api-test-suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/untitaker/api-test-suite/contents/{+path}","compare_url":"https://api.github.com/repos/untitaker/api-test-suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/untitaker/api-test-suite/merges","archive_url":"https://api.github.com/repos/untitaker/api-test-suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/untitaker/api-test-suite/downloads","issues_url":"https://api.github.com/repos/untitaker/api-test-suite/issues{/number}","pulls_url":"https://api.github.com/repos/untitaker/api-test-suite/pulls{/number}","milestones_url":"https://api.github.com/repos/untitaker/api-test-suite/milestones{/number}","notifications_url":"https://api.github.com/repos/untitaker/api-test-suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/untitaker/api-test-suite/labels{/name}","releases_url":"https://api.github.com/repos/untitaker/api-test-suite/releases{/id}","created_at":"2015-11-06T16:13:25Z","updated_at":"2015-11-06T16:13:25Z","pushed_at":"2015-11-06T16:13:28Z","git_url":"git://github.com/untitaker/api-test-suite.git","ssh_url":"git@github.com:untitaker/api-test-suite.git","clone_url":"https://github.com/untitaker/api-test-suite.git","svn_url":"https://github.com/untitaker/api-test-suite","homepage":"","size":139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"remotestorage:master","ref":"master","sha":"03d8473e63ce159f923bbb3eba5de8f02429df18","user":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars.githubusercontent.com/u/2323242?v=3","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"repo":{"id":33089461,"name":"api-test-suite","full_name":"remotestorage/api-test-suite","owner":{"login":"remotestorage","id":2323242,"avatar_url":"https://avatars.githubusercontent.com/u/2323242?v=3","gravatar_id":"","url":"https://api.github.com/users/remotestorage","html_url":"https://github.com/remotestorage","followers_url":"https://api.github.com/users/remotestorage/followers","following_url":"https://api.github.com/users/remotestorage/following{/other_user}","gists_url":"https://api.github.com/users/remotestorage/gists{/gist_id}","starred_url":"https://api.github.com/users/remotestorage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remotestorage/subscriptions","organizations_url":"https://api.github.com/users/remotestorage/orgs","repos_url":"https://api.github.com/users/remotestorage/repos","events_url":"https://api.github.com/users/remotestorage/events{/privacy}","received_events_url":"https://api.github.com/users/remotestorage/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/remotestorage/api-test-suite","description":"Test suite for RS server REST APIs","fork":false,"url":"https://api.github.com/repos/remotestorage/api-test-suite","forks_url":"https://api.github.com/repos/remotestorage/api-test-suite/forks","keys_url":"https://api.github.com/repos/remotestorage/api-test-suite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remotestorage/api-test-suite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remotestorage/api-test-suite/teams","hooks_url":"https://api.github.com/repos/remotestorage/api-test-suite/hooks","issue_events_url":"https://api.github.com/repos/remotestorage/api-test-suite/issues/events{/number}","events_url":"https://api.github.com/repos/remotestorage/api-test-suite/events","assignees_url":"https://api.github.com/repos/remotestorage/api-test-suite/assignees{/user}","branches_url":"https://api.github.com/repos/remotestorage/api-test-suite/branches{/branch}","tags_url":"https://api.github.com/repos/remotestorage/api-test-suite/tags","blobs_url":"https://api.github.com/repos/remotestorage/api-test-suite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remotestorage/api-test-suite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remotestorage/api-test-suite/git/refs{/sha}","trees_url":"https://api.github.com/repos/remotestorage/api-test-suite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remotestorage/api-test-suite/statuses/{sha}","languages_url":"https://api.github.com/repos/remotestorage/api-test-suite/languages","stargazers_url":"https://api.github.com/repos/remotestorage/api-test-suite/stargazers","contributors_url":"https://api.github.com/repos/remotestorage/api-test-suite/contributors","subscribers_url":"https://api.github.com/repos/remotestorage/api-test-suite/subscribers","subscription_url":"https://api.github.com/repos/remotestorage/api-test-suite/subscription","commits_url":"https://api.github.com/repos/remotestorage/api-test-suite/commits{/sha}","git_commits_url":"https://api.github.com/repos/remotestorage/api-test-suite/git/commits{/sha}","comments_url":"https://api.github.com/repos/remotestorage/api-test-suite/comments{/number}","issue_comment_url":"https://api.github.com/repos/remotestorage/api-test-suite/issues/comments{/number}","contents_url":"https://api.github.com/repos/remotestorage/api-test-suite/contents/{+path}","compare_url":"https://api.github.com/repos/remotestorage/api-test-suite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remotestorage/api-test-suite/merges","archive_url":"https://api.github.com/repos/remotestorage/api-test-suite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remotestorage/api-test-suite/downloads","issues_url":"https://api.github.com/repos/remotestorage/api-test-suite/issues{/number}","pulls_url":"https://api.github.com/repos/remotestorage/api-test-suite/pulls{/number}","milestones_url":"https://api.github.com/repos/remotestorage/api-test-suite/milestones{/number}","notifications_url":"https://api.github.com/repos/remotestorage/api-test-suite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remotestorage/api-test-suite/labels{/name}","releases_url":"https://api.github.com/repos/remotestorage/api-test-suite/releases{/id}","created_at":"2015-03-29T21:09:40Z","updated_at":"2015-10-13T20:49:49Z","pushed_at":"2015-11-06T16:13:31Z","git_url":"git://github.com/remotestorage/api-test-suite.git","ssh_url":"git@github.com:remotestorage/api-test-suite.git","clone_url":"https://github.com/remotestorage/api-test-suite.git","svn_url":"https://github.com/remotestorage/api-test-suite","homepage":"","size":377,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29"},"html":{"href":"https://github.com/remotestorage/api-test-suite/pull/29"},"issue":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/issues/29"},"comments":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/remotestorage/api-test-suite/statuses/e61573b4efc96b713cb01d64f3dc2aae076b5e69"}}}}