From fd11e1301d89fd957e9d43b99d80002f1f3e02ff Mon Sep 17 00:00:00 2001 From: infinitail <53908966+infinitail@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:22:11 +0900 Subject: [PATCH] Fix issue-685 Resolve "Signature V4 requires AWS credentials for request signing" Exception at Moodle 5.0. --- classes/local/store/s3/client.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/local/store/s3/client.php b/classes/local/store/s3/client.php index d1d6a389..72bd8931 100644 --- a/classes/local/store/s3/client.php +++ b/classes/local/store/s3/client.php @@ -321,6 +321,9 @@ public function test_connection() { } else { $this->client->headBucket(['Bucket' => $this->bucket]); } + } catch (\Aws\Auth\Exception\UnresolvedAuthSchemeException $e) { + $connection->success = false; + $connection->details = $this->get_exception_details($e); } catch (\Aws\S3\Exception\S3Exception $e) { $connection->success = false; $connection->details = $this->get_exception_details($e);