{"action":"created","comment":{"url":"https://api.github.com/repos/owncloud/core/pulls/comments/56248698","id":56248698,"diff_hunk":"@@ -0,0 +1,634 @@\n+<?php\n+/**\n+ * @author André Gaul <gaul@web-yard.de>\n+ * @author Arthur Schiwon <blizzz@owncloud.com>\n+ * @author Bart Visscher <bartv@thisnet.nl>\n+ * @author Christian Berendt <berendt@b1-systems.de>\n+ * @author Christopher T. Johnson <ctjctj@gmail.com>\n+ * @author Johan Björk <johanimon@gmail.com>\n+ * @author Jörn Friedrich Dreyer <jfd@butonic.de>\n+ * @author Martin Mattel <martin.mattel@diemattels.at>\n+ * @author Michael Gapczynski <GapczynskiM@gmail.com>\n+ * @author Morris Jobke <hey@morrisjobke.de>\n+ * @author Philipp Kapfer <philipp.kapfer@gmx.at>\n+ * @author Robin Appelman <icewind@owncloud.com>\n+ * @author Robin McCorkell <robin@mccorkell.me.uk>\n+ * @author Thomas Müller <thomas.mueller@tmit.eu>\n+ * @author Vincent Petry <pvince81@owncloud.com>\n+ *\n+ * @copyright Copyright (c) 2016, ownCloud, Inc.\n+ * @license AGPL-3.0\n+ *\n+ * This code is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License, version 3,\n+ * as published by the Free Software Foundation.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License, version 3,\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>\n+ *\n+ */\n+\n+namespace OC\\Files\\Storage;\n+\n+set_include_path(get_include_path() . PATH_SEPARATOR .\n+\t\\OC_App::getAppPath('files_external') . '/3rdparty/aws-sdk-php');\n+require 'aws-autoloader.php';\n+\n+use Aws\\S3\\S3Client;\n+use Aws\\S3\\Exception\\S3Exception;\n+use Icewind\\Streams\\IteratorDirectory;\n+\n+class DreamObjects extends \\OC\\Files\\Storage\\Common {","path":"apps/files_external/lib/backend/dreamobjects.php","position":46,"original_position":46,"commit_id":"1a80645580d6f9cde5c3a31a6adb48e1ed1a917f","original_commit_id":"1a80645580d6f9cde5c3a31a6adb48e1ed1a917f","user":{"login":"LukasReschke","id":878997,"avatar_url":"https://avatars.githubusercontent.com/u/878997?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasReschke","html_url":"https://github.com/LukasReschke","followers_url":"https://api.github.com/users/LukasReschke/followers","following_url":"https://api.github.com/users/LukasReschke/following{/other_user}","gists_url":"https://api.github.com/users/LukasReschke/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasReschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasReschke/subscriptions","organizations_url":"https://api.github.com/users/LukasReschke/orgs","repos_url":"https://api.github.com/users/LukasReschke/repos","events_url":"https://api.github.com/users/LukasReschke/events{/privacy}","received_events_url":"https://api.github.com/users/LukasReschke/received_events","type":"User","site_admin":false},"body":"Can you instead extend from `\\OC\\Files\\Storage\\AmazonS3`? We should not duplicate the complete Amazon code here. \r\n\r\nHas also the advantage that bugs have only to be fixed at one place etc…","created_at":"2016-03-15T22:00:03Z","updated_at":"2016-03-15T22:00:03Z","html_url":"https://github.com/owncloud/core/pull/23275#discussion_r56248698","pull_request_url":"https://api.github.com/repos/owncloud/core/pulls/23275","_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments/56248698"},"html":{"href":"https://github.com/owncloud/core/pull/23275#discussion_r56248698"},"pull_request":{"href":"https://api.github.com/repos/owncloud/core/pulls/23275"}}},"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/23275","id":62951199,"html_url":"https://github.com/owncloud/core/pull/23275","diff_url":"https://github.com/owncloud/core/pull/23275.diff","patch_url":"https://github.com/owncloud/core/pull/23275.patch","issue_url":"https://api.github.com/repos/owncloud/core/issues/23275","number":23275,"state":"open","locked":false,"title":"Add an option for DreamObjects as external storage","user":{"login":"squidboylan","id":10985680,"avatar_url":"https://avatars.githubusercontent.com/u/10985680?v=3","gravatar_id":"","url":"https://api.github.com/users/squidboylan","html_url":"https://github.com/squidboylan","followers_url":"https://api.github.com/users/squidboylan/followers","following_url":"https://api.github.com/users/squidboylan/following{/other_user}","gists_url":"https://api.github.com/users/squidboylan/gists{/gist_id}","starred_url":"https://api.github.com/users/squidboylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidboylan/subscriptions","organizations_url":"https://api.github.com/users/squidboylan/orgs","repos_url":"https://api.github.com/users/squidboylan/repos","events_url":"https://api.github.com/users/squidboylan/events{/privacy}","received_events_url":"https://api.github.com/users/squidboylan/received_events","type":"User","site_admin":false},"body":"Basically uses the AmazonS3 code (copied, doesnt use it directly) and fills in some defaults like host.","created_at":"2016-03-15T18:06:15Z","updated_at":"2016-03-15T22:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"257633c35aebfecd7d6f2053ff747805bbaadd55","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/core/pulls/23275/commits","review_comments_url":"https://api.github.com/repos/owncloud/core/pulls/23275/comments","review_comment_url":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/core/issues/23275/comments","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/1a80645580d6f9cde5c3a31a6adb48e1ed1a917f","head":{"label":"squidboylan:master","ref":"master","sha":"1a80645580d6f9cde5c3a31a6adb48e1ed1a917f","user":{"login":"squidboylan","id":10985680,"avatar_url":"https://avatars.githubusercontent.com/u/10985680?v=3","gravatar_id":"","url":"https://api.github.com/users/squidboylan","html_url":"https://github.com/squidboylan","followers_url":"https://api.github.com/users/squidboylan/followers","following_url":"https://api.github.com/users/squidboylan/following{/other_user}","gists_url":"https://api.github.com/users/squidboylan/gists{/gist_id}","starred_url":"https://api.github.com/users/squidboylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidboylan/subscriptions","organizations_url":"https://api.github.com/users/squidboylan/orgs","repos_url":"https://api.github.com/users/squidboylan/repos","events_url":"https://api.github.com/users/squidboylan/events{/privacy}","received_events_url":"https://api.github.com/users/squidboylan/received_events","type":"User","site_admin":false},"repo":{"id":53098100,"name":"core","full_name":"squidboylan/core","owner":{"login":"squidboylan","id":10985680,"avatar_url":"https://avatars.githubusercontent.com/u/10985680?v=3","gravatar_id":"","url":"https://api.github.com/users/squidboylan","html_url":"https://github.com/squidboylan","followers_url":"https://api.github.com/users/squidboylan/followers","following_url":"https://api.github.com/users/squidboylan/following{/other_user}","gists_url":"https://api.github.com/users/squidboylan/gists{/gist_id}","starred_url":"https://api.github.com/users/squidboylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidboylan/subscriptions","organizations_url":"https://api.github.com/users/squidboylan/orgs","repos_url":"https://api.github.com/users/squidboylan/repos","events_url":"https://api.github.com/users/squidboylan/events{/privacy}","received_events_url":"https://api.github.com/users/squidboylan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/squidboylan/core","description":"The ownCloud core","fork":true,"url":"https://api.github.com/repos/squidboylan/core","forks_url":"https://api.github.com/repos/squidboylan/core/forks","keys_url":"https://api.github.com/repos/squidboylan/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/squidboylan/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/squidboylan/core/teams","hooks_url":"https://api.github.com/repos/squidboylan/core/hooks","issue_events_url":"https://api.github.com/repos/squidboylan/core/issues/events{/number}","events_url":"https://api.github.com/repos/squidboylan/core/events","assignees_url":"https://api.github.com/repos/squidboylan/core/assignees{/user}","branches_url":"https://api.github.com/repos/squidboylan/core/branches{/branch}","tags_url":"https://api.github.com/repos/squidboylan/core/tags","blobs_url":"https://api.github.com/repos/squidboylan/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/squidboylan/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/squidboylan/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/squidboylan/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/squidboylan/core/statuses/{sha}","languages_url":"https://api.github.com/repos/squidboylan/core/languages","stargazers_url":"https://api.github.com/repos/squidboylan/core/stargazers","contributors_url":"https://api.github.com/repos/squidboylan/core/contributors","subscribers_url":"https://api.github.com/repos/squidboylan/core/subscribers","subscription_url":"https://api.github.com/repos/squidboylan/core/subscription","commits_url":"https://api.github.com/repos/squidboylan/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/squidboylan/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/squidboylan/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/squidboylan/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/squidboylan/core/contents/{+path}","compare_url":"https://api.github.com/repos/squidboylan/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/squidboylan/core/merges","archive_url":"https://api.github.com/repos/squidboylan/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/squidboylan/core/downloads","issues_url":"https://api.github.com/repos/squidboylan/core/issues{/number}","pulls_url":"https://api.github.com/repos/squidboylan/core/pulls{/number}","milestones_url":"https://api.github.com/repos/squidboylan/core/milestones{/number}","notifications_url":"https://api.github.com/repos/squidboylan/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/squidboylan/core/labels{/name}","releases_url":"https://api.github.com/repos/squidboylan/core/releases{/id}","deployments_url":"https://api.github.com/repos/squidboylan/core/deployments","created_at":"2016-03-04T01:38:48Z","updated_at":"2016-03-04T01:39:02Z","pushed_at":"2016-03-15T17:35:33Z","git_url":"git://github.com/squidboylan/core.git","ssh_url":"git@github.com:squidboylan/core.git","clone_url":"https://github.com/squidboylan/core.git","svn_url":"https://github.com/squidboylan/core","homepage":"https://owncloud.org/","size":202947,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"owncloud:master","ref":"master","sha":"f7140294f26f7966aa00cfdd49c76a14d39df04e","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":5550552,"name":"core","full_name":"owncloud/core","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/core","description":"The ownCloud core","fork":false,"url":"https://api.github.com/repos/owncloud/core","forks_url":"https://api.github.com/repos/owncloud/core/forks","keys_url":"https://api.github.com/repos/owncloud/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/core/teams","hooks_url":"https://api.github.com/repos/owncloud/core/hooks","issue_events_url":"https://api.github.com/repos/owncloud/core/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/core/events","assignees_url":"https://api.github.com/repos/owncloud/core/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/core/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/core/tags","blobs_url":"https://api.github.com/repos/owncloud/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/core/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/core/languages","stargazers_url":"https://api.github.com/repos/owncloud/core/stargazers","contributors_url":"https://api.github.com/repos/owncloud/core/contributors","subscribers_url":"https://api.github.com/repos/owncloud/core/subscribers","subscription_url":"https://api.github.com/repos/owncloud/core/subscription","commits_url":"https://api.github.com/repos/owncloud/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/core/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/core/merges","archive_url":"https://api.github.com/repos/owncloud/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/core/downloads","issues_url":"https://api.github.com/repos/owncloud/core/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/core/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/core/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/core/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/core/releases{/id}","deployments_url":"https://api.github.com/repos/owncloud/core/deployments","created_at":"2012-08-25T10:32:48Z","updated_at":"2016-03-15T21:16:59Z","pushed_at":"2016-03-15T20:44:28Z","git_url":"git://github.com/owncloud/core.git","ssh_url":"git@github.com:owncloud/core.git","clone_url":"https://github.com/owncloud/core.git","svn_url":"https://github.com/owncloud/core","homepage":"https://owncloud.org/","size":295989,"stargazers_count":4272,"watchers_count":4272,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1400,"mirror_url":null,"open_issues_count":1755,"forks":1400,"open_issues":1755,"watchers":4272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/core/pulls/23275"},"html":{"href":"https://github.com/owncloud/core/pull/23275"},"issue":{"href":"https://api.github.com/repos/owncloud/core/issues/23275"},"comments":{"href":"https://api.github.com/repos/owncloud/core/issues/23275/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/core/pulls/23275/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/core/pulls/23275/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/core/statuses/1a80645580d6f9cde5c3a31a6adb48e1ed1a917f"}}}}