{"action":"created","comment":{"url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/comments/64337738","id":64337738,"diff_hunk":"@@ -32,16 +26,15 @@ public StorageResource(StorageService storageService) {\n     @GET\n     public StreamingOutput getFile(@Auth User user,\n                                    @PathParam(\"userId\") UUID userId,\n-                                   @PathParam(\"context\") StorageContexts context,\n+                                   @PathParam(\"context\") String context,\n                                    @PathParam(\"storageId\") UUID storageId) throws StorageException {\n \n         assert user.getId().equals(userId);\n \n         return os -> {\n-            final Writer writer = new BufferedWriter(\n-                    new OutputStreamWriter(\n-                            storageService.get(userId, context, storageId)));\n-            writer.flush();\n+            byte[] fileStream = storageService.get(userId, StorageContexts.CV, storageId);","path":"backend/app/src/main/java/com/bls/patronage/resources/StorageResource.java","position":33,"original_position":33,"commit_id":"75214e5f93b74df18635ef26e136cf8514182f0f","original_commit_id":"75214e5f93b74df18635ef26e136cf8514182f0f","user":{"login":"mlotysz","id":700164,"avatar_url":"https://avatars.githubusercontent.com/u/700164?v=3","gravatar_id":"","url":"https://api.github.com/users/mlotysz","html_url":"https://github.com/mlotysz","followers_url":"https://api.github.com/users/mlotysz/followers","following_url":"https://api.github.com/users/mlotysz/following{/other_user}","gists_url":"https://api.github.com/users/mlotysz/gists{/gist_id}","starred_url":"https://api.github.com/users/mlotysz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlotysz/subscriptions","organizations_url":"https://api.github.com/users/mlotysz/orgs","repos_url":"https://api.github.com/users/mlotysz/repos","events_url":"https://api.github.com/users/mlotysz/events{/privacy}","received_events_url":"https://api.github.com/users/mlotysz/received_events","type":"User","site_admin":false},"body":"Do not read all file into memory. Read `StreamingOutput` (java/)doc and find other method to get bytes from underlying stream.","created_at":"2016-05-24T07:06:37Z","updated_at":"2016-05-24T07:06:37Z","html_url":"https://github.com/blstream/StudyBox_Backend/pull/100#discussion_r64337738","pull_request_url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/comments/64337738"},"html":{"href":"https://github.com/blstream/StudyBox_Backend/pull/100#discussion_r64337738"},"pull_request":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100","id":71050202,"html_url":"https://github.com/blstream/StudyBox_Backend/pull/100","diff_url":"https://github.com/blstream/StudyBox_Backend/pull/100.diff","patch_url":"https://github.com/blstream/StudyBox_Backend/pull/100.patch","issue_url":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/100","number":100,"state":"open","locked":false,"title":"Changing CVRequest to match the documentation. Adding test","user":{"login":"VanDavv","id":5244214,"avatar_url":"https://avatars.githubusercontent.com/u/5244214?v=3","gravatar_id":"","url":"https://api.github.com/users/VanDavv","html_url":"https://github.com/VanDavv","followers_url":"https://api.github.com/users/VanDavv/followers","following_url":"https://api.github.com/users/VanDavv/following{/other_user}","gists_url":"https://api.github.com/users/VanDavv/gists{/gist_id}","starred_url":"https://api.github.com/users/VanDavv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VanDavv/subscriptions","organizations_url":"https://api.github.com/users/VanDavv/orgs","repos_url":"https://api.github.com/users/VanDavv/repos","events_url":"https://api.github.com/users/VanDavv/events{/privacy}","received_events_url":"https://api.github.com/users/VanDavv/received_events","type":"User","site_admin":false},"body":"I need to change from URL to String type, due to documentation","created_at":"2016-05-23T12:09:27Z","updated_at":"2016-05-24T07:06:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdfeaf5194210c29193c9e33d9a9a812b6902c59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100/commits","review_comments_url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100/comments","review_comment_url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/100/comments","statuses_url":"https://api.github.com/repos/blstream/StudyBox_Backend/statuses/75214e5f93b74df18635ef26e136cf8514182f0f","head":{"label":"VanDavv:master","ref":"master","sha":"75214e5f93b74df18635ef26e136cf8514182f0f","user":{"login":"VanDavv","id":5244214,"avatar_url":"https://avatars.githubusercontent.com/u/5244214?v=3","gravatar_id":"","url":"https://api.github.com/users/VanDavv","html_url":"https://github.com/VanDavv","followers_url":"https://api.github.com/users/VanDavv/followers","following_url":"https://api.github.com/users/VanDavv/following{/other_user}","gists_url":"https://api.github.com/users/VanDavv/gists{/gist_id}","starred_url":"https://api.github.com/users/VanDavv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VanDavv/subscriptions","organizations_url":"https://api.github.com/users/VanDavv/orgs","repos_url":"https://api.github.com/users/VanDavv/repos","events_url":"https://api.github.com/users/VanDavv/events{/privacy}","received_events_url":"https://api.github.com/users/VanDavv/received_events","type":"User","site_admin":false},"repo":{"id":59479378,"name":"StudyBox_Backend","full_name":"VanDavv/StudyBox_Backend","owner":{"login":"VanDavv","id":5244214,"avatar_url":"https://avatars.githubusercontent.com/u/5244214?v=3","gravatar_id":"","url":"https://api.github.com/users/VanDavv","html_url":"https://github.com/VanDavv","followers_url":"https://api.github.com/users/VanDavv/followers","following_url":"https://api.github.com/users/VanDavv/following{/other_user}","gists_url":"https://api.github.com/users/VanDavv/gists{/gist_id}","starred_url":"https://api.github.com/users/VanDavv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VanDavv/subscriptions","organizations_url":"https://api.github.com/users/VanDavv/orgs","repos_url":"https://api.github.com/users/VanDavv/repos","events_url":"https://api.github.com/users/VanDavv/events{/privacy}","received_events_url":"https://api.github.com/users/VanDavv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VanDavv/StudyBox_Backend","description":"StudyBox Java Backend - BLStream Patronage 2016 application","fork":true,"url":"https://api.github.com/repos/VanDavv/StudyBox_Backend","forks_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/forks","keys_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/teams","hooks_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/hooks","issue_events_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/issues/events{/number}","events_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/events","assignees_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/assignees{/user}","branches_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/branches{/branch}","tags_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/tags","blobs_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/languages","stargazers_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/stargazers","contributors_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/contributors","subscribers_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/subscribers","subscription_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/subscription","commits_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/contents/{+path}","compare_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/merges","archive_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/downloads","issues_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/issues{/number}","pulls_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/labels{/name}","releases_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/releases{/id}","deployments_url":"https://api.github.com/repos/VanDavv/StudyBox_Backend/deployments","created_at":"2016-05-23T12:06:20Z","updated_at":"2016-05-23T12:06:21Z","pushed_at":"2016-05-23T22:58:13Z","git_url":"git://github.com/VanDavv/StudyBox_Backend.git","ssh_url":"git@github.com:VanDavv/StudyBox_Backend.git","clone_url":"https://github.com/VanDavv/StudyBox_Backend.git","svn_url":"https://github.com/VanDavv/StudyBox_Backend","homepage":null,"size":466,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"blstream:master","ref":"master","sha":"a4a4133c880747c725266fc1b1c0f3fce6bd21f4","user":{"login":"blstream","id":316451,"avatar_url":"https://avatars.githubusercontent.com/u/316451?v=3","gravatar_id":"","url":"https://api.github.com/users/blstream","html_url":"https://github.com/blstream","followers_url":"https://api.github.com/users/blstream/followers","following_url":"https://api.github.com/users/blstream/following{/other_user}","gists_url":"https://api.github.com/users/blstream/gists{/gist_id}","starred_url":"https://api.github.com/users/blstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blstream/subscriptions","organizations_url":"https://api.github.com/users/blstream/orgs","repos_url":"https://api.github.com/users/blstream/repos","events_url":"https://api.github.com/users/blstream/events{/privacy}","received_events_url":"https://api.github.com/users/blstream/received_events","type":"Organization","site_admin":false},"repo":{"id":52280956,"name":"StudyBox_Backend","full_name":"blstream/StudyBox_Backend","owner":{"login":"blstream","id":316451,"avatar_url":"https://avatars.githubusercontent.com/u/316451?v=3","gravatar_id":"","url":"https://api.github.com/users/blstream","html_url":"https://github.com/blstream","followers_url":"https://api.github.com/users/blstream/followers","following_url":"https://api.github.com/users/blstream/following{/other_user}","gists_url":"https://api.github.com/users/blstream/gists{/gist_id}","starred_url":"https://api.github.com/users/blstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blstream/subscriptions","organizations_url":"https://api.github.com/users/blstream/orgs","repos_url":"https://api.github.com/users/blstream/repos","events_url":"https://api.github.com/users/blstream/events{/privacy}","received_events_url":"https://api.github.com/users/blstream/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/blstream/StudyBox_Backend","description":"StudyBox Java Backend - BLStream Patronage 2016 application","fork":false,"url":"https://api.github.com/repos/blstream/StudyBox_Backend","forks_url":"https://api.github.com/repos/blstream/StudyBox_Backend/forks","keys_url":"https://api.github.com/repos/blstream/StudyBox_Backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blstream/StudyBox_Backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blstream/StudyBox_Backend/teams","hooks_url":"https://api.github.com/repos/blstream/StudyBox_Backend/hooks","issue_events_url":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/events{/number}","events_url":"https://api.github.com/repos/blstream/StudyBox_Backend/events","assignees_url":"https://api.github.com/repos/blstream/StudyBox_Backend/assignees{/user}","branches_url":"https://api.github.com/repos/blstream/StudyBox_Backend/branches{/branch}","tags_url":"https://api.github.com/repos/blstream/StudyBox_Backend/tags","blobs_url":"https://api.github.com/repos/blstream/StudyBox_Backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blstream/StudyBox_Backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blstream/StudyBox_Backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/blstream/StudyBox_Backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blstream/StudyBox_Backend/statuses/{sha}","languages_url":"https://api.github.com/repos/blstream/StudyBox_Backend/languages","stargazers_url":"https://api.github.com/repos/blstream/StudyBox_Backend/stargazers","contributors_url":"https://api.github.com/repos/blstream/StudyBox_Backend/contributors","subscribers_url":"https://api.github.com/repos/blstream/StudyBox_Backend/subscribers","subscription_url":"https://api.github.com/repos/blstream/StudyBox_Backend/subscription","commits_url":"https://api.github.com/repos/blstream/StudyBox_Backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/blstream/StudyBox_Backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/blstream/StudyBox_Backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/blstream/StudyBox_Backend/contents/{+path}","compare_url":"https://api.github.com/repos/blstream/StudyBox_Backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blstream/StudyBox_Backend/merges","archive_url":"https://api.github.com/repos/blstream/StudyBox_Backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blstream/StudyBox_Backend/downloads","issues_url":"https://api.github.com/repos/blstream/StudyBox_Backend/issues{/number}","pulls_url":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls{/number}","milestones_url":"https://api.github.com/repos/blstream/StudyBox_Backend/milestones{/number}","notifications_url":"https://api.github.com/repos/blstream/StudyBox_Backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blstream/StudyBox_Backend/labels{/name}","releases_url":"https://api.github.com/repos/blstream/StudyBox_Backend/releases{/id}","deployments_url":"https://api.github.com/repos/blstream/StudyBox_Backend/deployments","created_at":"2016-02-22T14:56:40Z","updated_at":"2016-03-03T11:40:33Z","pushed_at":"2016-05-23T22:58:14Z","git_url":"git://github.com/blstream/StudyBox_Backend.git","ssh_url":"git@github.com:blstream/StudyBox_Backend.git","clone_url":"https://github.com/blstream/StudyBox_Backend.git","svn_url":"https://github.com/blstream/StudyBox_Backend","homepage":null,"size":1009,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100"},"html":{"href":"https://github.com/blstream/StudyBox_Backend/pull/100"},"issue":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/100"},"comments":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/blstream/StudyBox_Backend/statuses/75214e5f93b74df18635ef26e136cf8514182f0f"}}}}
{"actor":{"display_login":"mlotysz"}}