WeKnora/internal/application/service/file
Ankit Jha 27b9ee74a0
fix(storage): use virtual-hosted addressing for Tencent COS through the S3 driver (#3722)
newS3Client forced path-style for every non-AWS endpoint, so a COS
endpoint such as https://cos.ap-shanghai.myqcloud.com sent requests to
cos.<region>.myqcloud.com/<bucket>/<key>. COS rejects path-style for
buckets created from 2024-01-01, so STORAGE_TYPE=s3 could not reach new
COS buckets, and force_path_style=false had no way to turn it off.

Treat *.myqcloud.com like AWS and use virtual-hosted style. An explicit
force_path_style still wins, and other S3-compatible endpoints keep
path-style.

Fixes #3134

Signed-off-by: Ankit Jha <ankit.jha@tradomate.one>
2026-10-08 01:20:54 +08:00
..
backend_scoped.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
backend_scoped_test.go fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
canonical_path_parse_test.go style(files): wrap long test case to satisfy lll 2026-09-25 21:46:12 +08:00
cos.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
cos_parse_test.go fix(security): close the low-severity shared-space findings (#3416) 2026-09-18 22:58:46 +08:00
dummy.go
…
endpoint_security_test.go
…
errors.go
…
factory.go
…
ks3.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
ks3_path_test.go fix(security): close the low-severity shared-space findings (#3416) 2026-09-18 22:58:46 +08:00
ks3_redirect_test.go fix(storage): keep the SSRF redirect policy on the KS3 client (#3440) 2026-09-20 11:12:52 +08:00
local.go fix(storage): strip storage-backend scope in local provider path normalization (#2979) 2026-09-21 14:21:25 +08:00
local_copy_test.go
…
local_test.go fix(storage): strip storage-backend scope in local provider path normalization (#2979) 2026-09-21 14:21:25 +08:00
minio.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
object_storage_http.go fix(storage): let object storage transfers outlive 30 seconds (#3368) 2026-09-19 21:30:55 +08:00
object_storage_http_test.go fix(storage): let object storage transfers outlive 30 seconds (#3368) 2026-09-19 21:30:55 +08:00
obs.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
obs_test.go fix(storage): use virtual-hosted addressing for OBS bucket requests (#3273) 2026-09-15 18:18:40 +08:00
oss.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00
oss_test.go
…
resolve_tenant.go
…
resource_catalog.go
…
resource_catalog_test.go
…
s3.go fix(storage): use virtual-hosted addressing for Tencent COS through the S3 driver (#3722) 2026-10-08 01:20:54 +08:00
s3_test.go fix(storage): use virtual-hosted addressing for Tencent COS through the S3 driver (#3722) 2026-10-08 01:20:54 +08:00
tos.go fix(files): accept canonical storage:// paths in bare provider services (#3166) 2026-09-25 18:48:04 +08:00