From 6278157f40b56ca6e542bade14fdd15182786147 Mon Sep 17 00:00:00 2001 From: wvengen Date: Sat, 16 Mar 2024 08:17:23 +0000 Subject: [PATCH] Make storage deletion work on more S3 providers, don't use access URL for deletion (#1600) I came across [this problem](https://forum.webrecorder.net/t/deleting-crawl-failure/512) and noticed that the access URL is used when deleting files, causing my file deletions to fail on OpenStack SWIFT S3 (relates to #1090). This trivial change makes it work there. --- backend/btrixcloud/storages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/btrixcloud/storages.py b/backend/btrixcloud/storages.py index 4161da1d..08225b31 100644 --- a/backend/btrixcloud/storages.py +++ b/backend/btrixcloud/storages.py @@ -501,7 +501,7 @@ class StorageOps: s3storage = self.get_org_storage_by_ref(org, storage) - async with self.get_s3_client(s3storage, s3storage.use_access_for_presign) as ( + async with self.get_s3_client(s3storage) as ( client, bucket, key,