Repository navigation
Conversation
spydon
marked this pull request as ready for review
December 3, 2026 13:52
Coverage Report for CI Build 47120117490Coverage decreased (-0.001%) to 88.876%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the signed-URL handling changes for object paths containing ?.
No open issues 🎉
What changed in this PR
Fixes signed download and upload URLs for object paths containing ?, keeping URL encoding separate from the object identity stored in tokens.
Changes:
- Encodes
?in generated signed URL paths. - Builds single-object signing claims directly from bucket and object names.
- Adds regression tests that redeem URLs from all three signing routes.
| File | Description |
|---|---|
src/test/object.test.ts |
Adds question-mark regression tests and updates the signing API call. |
src/storage/object.ts |
Encodes question marks and signs literal object identities. |
src/http/routes/object/getSignedURL.ts |
Removes the request URL argument from single-object signing. |
Review effort: Balanced
1 task done
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed URLs for a key with
?cut the path at the?, so thetokenis lost and the URL can't be used.POST /object/sign/:bucketandPOST /object/upload/sign/:bucket/*put the raw key into the URL. They now encode?in the path. Other characters are unchanged, so URLs for every other key stay byte-identical.POST /object/sign/:bucket/*signed theurlclaim fromdecodeURI(request.url), which keeps%3Fencoded, so the download check never matched. It now signs${bucketId}/${objectName}, like the other routes.?key on each route and then use the returned URL. All three fail onmaster.supabase-js runs these URLs through
encodeURI, which turns%3Finto%253F, so?keys stay broken there until it stops doing that. They are already broken there today.