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

supabase / supabase-swift / 44073164287
96%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 11:37AM UTC
Jobs 1
Files 222
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

17 Nov 2026 11:20AM UTC coverage: 96.092% (-0.03%) from 96.126%
44073164287

push

github

web-flow
fix(storage): send values to the service instead of checking them first (#1839)

* fix(storage): send values to the service instead of checking them first

Validation belongs to the service (supabase/sdk#308). Storage v1.90.1
answers each of these itself, on the same route:

- updateBucket with no field set sends `{}`; Storage answers 400
  InvalidRequest.
- createSignedURL(s) send any expiresIn; Storage answers 400 below 1 s.
- Object paths go as written: no trimming of `/`, no collapsing of `//`,
  no refusal of an empty path or a `.`/`..` segment. Storage answers
  InvalidKey. Dot segments stay encoded as %2E so libcurl cannot fold them.

* fix(storage): keep path normalization that the API gateway forces

Linux CI runs the Docker stack, where the API gateway sits in front of
Storage. The gateway rewrites the URL path before Storage sees it: it drops
a leading `/`, collapses `//`, and resolves `.` and `..` segments, even
when they are sent as `%2E%2E`. An upload to `d/x/../y.txt` overwrote
`d/y.txt`, and `/a//b/` was stored as `a/b/`.

The native stack has no gateway, so the previous commit could not see
this. Paths are again normalized on every method, in URLs and JSON bodies
alike, and a `.` or `..` segment throws `invalidRequest`: the gateway would
silently send it to a different key. A trailing `/` is kept, because the
gateway keeps it. An empty path still goes to Storage, which answers
`InvalidKey` on the same route on both stacks.

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

5 existing lines in 2 files now uncovered.

16326 of 16990 relevant lines covered (96.09%)

670659.76 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
97.52
-2.48% Sources/Helpers/JSONValue/JSONValue.swift
2
98.57
-1.43% Sources/PostgREST/Untyped/PostgrestQueryBuilder.swift
Jobs
ID Job ID Ran Files Coverage
1 44073164287.1 17 Nov 2026 11:37AM UTC 222
96.09
GitHub Action Run
Source Files on build 44073164287
  • Tree
  • List 222
  • Changed 10
  • Source Changed 8
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44073164287
  • 531793db on github
  • Prev Build on main (#44070007488)
  • Next Build on main (#44076963852)
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