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

supabase / storage / 45169501572
89%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2026 11:57AM UTC
Jobs 2
Files 393
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

23 Nov 2026 11:55AM UTC coverage: 88.446% (+0.05%) from 88.393%
45169501572

push

github

web-flow
fix(s3): reject unsupported subresources instead of falling through to catch-all routes (#1722)

Fixes #1721.

S3 write requests for operations Storage does not implement fell through
to PutObject, DeleteObject or DeleteBucket. A route registered without a
query string matches any query, and the schemas drop unknown keys, so:

- `PutObjectTagging` (`PUT ?tagging`) replaced the object body with the
`<Tagging>` XML and `PutObjectAcl` (`PUT ?acl`) replaced it with an
empty body, both returning 200.
- `DeleteObjectTagging` (`DELETE ?tagging`) deleted the object and
returned 204.
- `DeleteBucketCors` and `DeleteBucketPolicy` (`DELETE ?cors`, `DELETE
?policy`) deleted an empty bucket and returned 204.

## What changed

- `router.ts`: a catch-all route no longer matches a PUT, POST or DELETE
request that carries a known S3 subresource Storage does not implement
(`acl`, `tagging`, `cors`, `policy`, `website`, `encryption`,
`replication`, `retention`, `legal-hold`, `restore`, `select`, ... the
full list is `UNSUPPORTED_SUBRESOURCES`). Implemented subresources
(`lifecycle`, `versioning`, `uploads`, `uploadId`, `partNumber`,
`delete`, `location`, `attributes`, and GET `tagging`) are not in the
list, so their routes match as before.
- `index.ts`: when no route matches and the request carries one of those
subresources, it now returns `501 NotImplemented`, the code S3 uses for
functionality it doesn't implement. Other unmatched requests keep the
existing 404.
- `codes.ts`: adds `ERRORS.NotImplemented`. I didn't reuse
`NotSupported`, since that is a 409 for features not enabled on a
resource.

GET and HEAD routing is unchanged. An unknown subresource there still
falls through to GetObject, HeadObject or ListObjects. That is also
wrong, but it doesn't modify data, and some clients may rely on it
today, so I left it out of this PR.

Query keys that aren't subresources, such as the `x-id` the AWS SDK
adds, still match the catch-all routes.

## Tests

- `router.test.ts`... (continued)

9891 of 11759 branches covered (84.11%)

Branch coverage included in aggregate %.

32 of 32 new or added lines in 4 files covered. (100.0%)

17107 of 18766 relevant lines covered (91.16%)

1276.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 45169501572.1 23 Nov 2026 12:02PM UTC 368
68.98
GitHub Action Run
2 unit - 45169501572.2 23 Nov 2026 11:57AM UTC 384
71.81
GitHub Action Run
Source Files on build 45169501572
  • Tree
  • List 393
  • Changed 8
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45169501572
  • 5a330688 on github
  • Prev Build on master (#45162514352)
  • Next Build on master (#45202716949)
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