Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-02 21:32:32 +0400
committerVincent Petry <pvince81@owncloud.com>2013-12-03 18:55:15 +0400
commite372971f2b766f5563583a9693c2e2f75b9fd3a2 (patch)
tree57d80f2b4e013b6513d88ad6b5f67a460aacd7e5 /apps/files_external
parent3bf30377b87fa128cb3fed5bdeaa7234edcff1d3 (diff)
Fixed test function for S3
Fixes #5752
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/amazons3.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php
index b6d02ee0c46..00baacd488c 100644
--- a/apps/files_external/lib/amazons3.php
+++ b/apps/files_external/lib/amazons3.php
@@ -507,8 +507,10 @@ class AmazonS3 extends \OC\Files\Storage\Common {
}
public function test() {
- $test = $this->s3->get_canonical_user_id();
- if (isset($test['id']) && $test['id'] != '') {
+ $test = $this->connection->getBucketAcl(array(
+ 'Bucket' => $this->bucket,
+ ));
+ if (isset($test) && !is_null($test->getPath('Owner/ID'))) {
return true;
}
return false;