From c0f5d483b7ee3d1bd43678a51d7234b55abb05f9 Mon Sep 17 00:00:00 2001 From: Page Asgardius Date: Sat, 17 Sep 2022 18:54:54 -0700 Subject: [PATCH] update readme --- README.md | 2 +- .../main/java/asgardius/page/s3manager/ObjectSelect.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 287a81e..b9dae05 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Known supported providers * Amazon Web Services * Scaleway Elements -* Oracle Cloud +* Oracle Cloud (partial) * MinIO Known not supported providers diff --git a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java index f3b53f2..abc809c 100644 --- a/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java +++ b/app/src/main/java/asgardius/page/s3manager/ObjectSelect.java @@ -66,7 +66,11 @@ public class ObjectSelect extends AppCompatActivity { region = Region.getRegion(location); s3ClientOptions = S3ClientOptions.builder().build(); myCredentials = new BasicAWSCredentials(username, password); - s3client = new AmazonS3Client(myCredentials, region); + try { + s3client = new AmazonS3Client(myCredentials, region); + } catch (Exception e) { + Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show(); + } s3client.setEndpoint(endpoint); if (!endpoint.contains(getResources().getString(R.string.aws_endpoint))) { s3ClientOptions.setPathStyleAccess(true);