{"action":"created","comment":{"url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/comments/48293960","id":48293960,"diff_hunk":"@@ -84,6 +85,30 @@ BOOST_AUTO_TEST_CASE( head_bucket ) {\n     free_client(client);\n }\n \n+BOOST_AUTO_TEST_CASE( head_folder ) {\n+    printf(\"-----Testing head_folder-------\\n\");\n+    ds3_error* error;\n+    ds3_client* client = get_client();\n+    const char* bucket_name = \"head_folder_test\";\n+    ds3_request* request = ds3_init_put_bucket(bucket_name);\n+    error = ds3_put_bucket(client, request);\n+    ds3_free_request(request);\n+    handle_error(error);\n+\n+    const char* test_folder = \"test_folder/\";\n+    request = ds3_init_put_object_for_job(bucket_name, test_folder, 0, 0, NULL);\n+    error   = ds3_put_object(client, request, NULL, NULL);\n+    ds3_free_request(request);\n+    handle_error(error);\n+\n+    request = ds3_init_head_bucket(bucket_name);\n+    error = ds3_head_bucket(client, request);","path":"test/metadata_tests.cpp","position":29,"original_position":29,"commit_id":"30c87588c1e1530407f084b23422177d7b4d031d","original_commit_id":"30c87588c1e1530407f084b23422177d7b4d031d","user":{"login":"chanchett","id":5107221,"avatar_url":"https://avatars.githubusercontent.com/u/5107221?v=3","gravatar_id":"","url":"https://api.github.com/users/chanchett","html_url":"https://github.com/chanchett","followers_url":"https://api.github.com/users/chanchett/followers","following_url":"https://api.github.com/users/chanchett/following{/other_user}","gists_url":"https://api.github.com/users/chanchett/gists{/gist_id}","starred_url":"https://api.github.com/users/chanchett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanchett/subscriptions","organizations_url":"https://api.github.com/users/chanchett/orgs","repos_url":"https://api.github.com/users/chanchett/repos","events_url":"https://api.github.com/users/chanchett/events{/privacy}","received_events_url":"https://api.github.com/users/chanchett/received_events","type":"User","site_admin":false},"body":"Weren't the changes made to head_object, not head_bucket?","created_at":"2015-12-22T20:22:06Z","updated_at":"2015-12-22T20:22:06Z","html_url":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88#discussion_r48293960","pull_request_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/comments/48293960"},"html":{"href":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88#discussion_r48293960"},"pull_request":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88","id":54396762,"html_url":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88","diff_url":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88.diff","patch_url":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88.patch","issue_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/88","number":88,"state":"open","locked":false,"title":"fix a couple memory leaks introduced in new unit tests; add a conditi…","user":{"login":"DenverM80","id":8795876,"avatar_url":"https://avatars.githubusercontent.com/u/8795876?v=3","gravatar_id":"","url":"https://api.github.com/users/DenverM80","html_url":"https://github.com/DenverM80","followers_url":"https://api.github.com/users/DenverM80/followers","following_url":"https://api.github.com/users/DenverM80/following{/other_user}","gists_url":"https://api.github.com/users/DenverM80/gists{/gist_id}","starred_url":"https://api.github.com/users/DenverM80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenverM80/subscriptions","organizations_url":"https://api.github.com/users/DenverM80/orgs","repos_url":"https://api.github.com/users/DenverM80/repos","events_url":"https://api.github.com/users/DenverM80/events{/privacy}","received_events_url":"https://api.github.com/users/DenverM80/received_events","type":"User","site_admin":false},"body":"…on to ds3_head_object to return an error before attempting the request if the object parameter is not given\r\n\r\n==16431== LEAK SUMMARY:\r\n==16431==    definitely lost: 0 bytes in 0 blocks\r\n==16431==    indirectly lost: 0 bytes in 0 blocks\r\n==16431==      possibly lost: 0 bytes in 0 blocks\r\n==16431==    still reachable: 2,550 bytes in 16 blocks\r\n==16431==         suppressed: 0 bytes in 0 blocks\r\n==16431== \r\n==16431== For counts of detected and suppressed errors, rerun with: -v\r\n==16431== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\r\ndenverm@dm-lt:~/code/github/ds3_c_sdk/test$ \r\n","created_at":"2015-12-22T17:51:51Z","updated_at":"2015-12-22T20:22:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00a32420eb0d8c72c4dd767c37db883698e04a77","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88/commits","review_comments_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88/comments","review_comment_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/88/comments","statuses_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/statuses/30c87588c1e1530407f084b23422177d7b4d031d","head":{"label":"DenverM80:master","ref":"master","sha":"30c87588c1e1530407f084b23422177d7b4d031d","user":{"login":"DenverM80","id":8795876,"avatar_url":"https://avatars.githubusercontent.com/u/8795876?v=3","gravatar_id":"","url":"https://api.github.com/users/DenverM80","html_url":"https://github.com/DenverM80","followers_url":"https://api.github.com/users/DenverM80/followers","following_url":"https://api.github.com/users/DenverM80/following{/other_user}","gists_url":"https://api.github.com/users/DenverM80/gists{/gist_id}","starred_url":"https://api.github.com/users/DenverM80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenverM80/subscriptions","organizations_url":"https://api.github.com/users/DenverM80/orgs","repos_url":"https://api.github.com/users/DenverM80/repos","events_url":"https://api.github.com/users/DenverM80/events{/privacy}","received_events_url":"https://api.github.com/users/DenverM80/received_events","type":"User","site_admin":false},"repo":{"id":40133997,"name":"ds3_c_sdk","full_name":"DenverM80/ds3_c_sdk","owner":{"login":"DenverM80","id":8795876,"avatar_url":"https://avatars.githubusercontent.com/u/8795876?v=3","gravatar_id":"","url":"https://api.github.com/users/DenverM80","html_url":"https://github.com/DenverM80","followers_url":"https://api.github.com/users/DenverM80/followers","following_url":"https://api.github.com/users/DenverM80/following{/other_user}","gists_url":"https://api.github.com/users/DenverM80/gists{/gist_id}","starred_url":"https://api.github.com/users/DenverM80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DenverM80/subscriptions","organizations_url":"https://api.github.com/users/DenverM80/orgs","repos_url":"https://api.github.com/users/DenverM80/repos","events_url":"https://api.github.com/users/DenverM80/events{/privacy}","received_events_url":"https://api.github.com/users/DenverM80/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DenverM80/ds3_c_sdk","description":"","fork":true,"url":"https://api.github.com/repos/DenverM80/ds3_c_sdk","forks_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/forks","keys_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/teams","hooks_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/hooks","issue_events_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/events","assignees_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/tags","blobs_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/languages","stargazers_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/stargazers","contributors_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/contributors","subscribers_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/subscribers","subscription_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/subscription","commits_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/merges","archive_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/downloads","issues_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/labels{/name}","releases_url":"https://api.github.com/repos/DenverM80/ds3_c_sdk/releases{/id}","created_at":"2015-08-03T15:59:56Z","updated_at":"2015-08-03T15:59:59Z","pushed_at":"2015-12-22T19:50:55Z","git_url":"git://github.com/DenverM80/ds3_c_sdk.git","ssh_url":"git@github.com:DenverM80/ds3_c_sdk.git","clone_url":"https://github.com/DenverM80/ds3_c_sdk.git","svn_url":"https://github.com/DenverM80/ds3_c_sdk","homepage":null,"size":12793,"stargazers_count":0,"watchers_count":0,"language":"C","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":"SpectraLogic:master","ref":"master","sha":"1def589962283b35d9a20cd64293c758c1c9b821","user":{"login":"SpectraLogic","id":7060807,"avatar_url":"https://avatars.githubusercontent.com/u/7060807?v=3","gravatar_id":"","url":"https://api.github.com/users/SpectraLogic","html_url":"https://github.com/SpectraLogic","followers_url":"https://api.github.com/users/SpectraLogic/followers","following_url":"https://api.github.com/users/SpectraLogic/following{/other_user}","gists_url":"https://api.github.com/users/SpectraLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/SpectraLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpectraLogic/subscriptions","organizations_url":"https://api.github.com/users/SpectraLogic/orgs","repos_url":"https://api.github.com/users/SpectraLogic/repos","events_url":"https://api.github.com/users/SpectraLogic/events{/privacy}","received_events_url":"https://api.github.com/users/SpectraLogic/received_events","type":"Organization","site_admin":false},"repo":{"id":18419918,"name":"ds3_c_sdk","full_name":"SpectraLogic/ds3_c_sdk","owner":{"login":"SpectraLogic","id":7060807,"avatar_url":"https://avatars.githubusercontent.com/u/7060807?v=3","gravatar_id":"","url":"https://api.github.com/users/SpectraLogic","html_url":"https://github.com/SpectraLogic","followers_url":"https://api.github.com/users/SpectraLogic/followers","following_url":"https://api.github.com/users/SpectraLogic/following{/other_user}","gists_url":"https://api.github.com/users/SpectraLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/SpectraLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpectraLogic/subscriptions","organizations_url":"https://api.github.com/users/SpectraLogic/orgs","repos_url":"https://api.github.com/users/SpectraLogic/repos","events_url":"https://api.github.com/users/SpectraLogic/events{/privacy}","received_events_url":"https://api.github.com/users/SpectraLogic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpectraLogic/ds3_c_sdk","description":"","fork":false,"url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk","forks_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/forks","keys_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/teams","hooks_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/hooks","issue_events_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/events","assignees_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/tags","blobs_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/languages","stargazers_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/stargazers","contributors_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/contributors","subscribers_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/subscribers","subscription_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/subscription","commits_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/merges","archive_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/downloads","issues_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/labels{/name}","releases_url":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/releases{/id}","created_at":"2014-04-03T22:16:04Z","updated_at":"2015-04-23T18:06:00Z","pushed_at":"2015-12-22T19:50:55Z","git_url":"git://github.com/SpectraLogic/ds3_c_sdk.git","ssh_url":"git@github.com:SpectraLogic/ds3_c_sdk.git","clone_url":"https://github.com/SpectraLogic/ds3_c_sdk.git","svn_url":"https://github.com/SpectraLogic/ds3_c_sdk","homepage":null,"size":13142,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88"},"html":{"href":"https://github.com/SpectraLogic/ds3_c_sdk/pull/88"},"issue":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/88"},"comments":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/SpectraLogic/ds3_c_sdk/statuses/30c87588c1e1530407f084b23422177d7b4d031d"}}}}