• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 43197872124
88%

Build:
DEFAULT BRANCH: master
Ran 12 Nov 2026 10:11AM UTC
Jobs 2
Files 340
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Nov 2026 10:09AM UTC coverage: 87.657% (+0.004%) from 87.653%
43197872124

push

github

web-flow
fix(s3): return BucketAlreadyOwnedByYou when creating an existing bucket (#1657)

Fixes #1656.

S3 `CreateBucket` on a bucket the project already owns returned 409
`BucketAlreadyExists`, the code the database layer throws for a
duplicate insert. AWS returns `BucketAlreadyOwnedByYou` in that case
(`BucketAlreadyExists` is for names held by another account), and SDK
idempotent create-if-missing flows branch on exactly this code.

The fix maps the duplicate-insert error to a new S3-specific
`BucketAlreadyOwnedByYou` error in `S3ProtocolHandler.createBucket`,
mirroring how `deleteBucket` already maps to `BucketNotEmpty`. The REST
API path is untouched and keeps returning `BucketAlreadyExists`.

Tests: added `S3ProtocolHandler.createBucket` cases in
`s3-handler.test.ts` — the already-owned case fails before (returns
`BucketAlreadyExists`) and passes after, and other errors still pass
through unchanged. Full `s3-handler.test.ts` suite passes (88 tests),
`biome check` and `tsc --noEmit` clean.

---------

Signed-off-by: Aniket <aniketkomailkro@gmail.com>
Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>
Co-authored-by: Ferhat Elmas <elmas.ferhat@gmail.com>

8514 of 10216 branches covered (83.34%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 2 files covered. (100.0%)

14553 of 16099 relevant lines covered (90.4%)

1359.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 43197872124.1 12 Nov 2026 10:14AM UTC 318
67.08
GitHub Action Run
2 unit - 43197872124.2 12 Nov 2026 10:11AM UTC 333
70.33
GitHub Action Run
Source Files on build 43197872124
  • Tree
  • List 340
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43197872124
  • 8330f020 on github
  • Prev Build on master (#43190236934)
  • Next Build on master (#43420814166)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc