Skip to content

fix(storage): reject dot segments in object keys - #2205

Merged
spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3149-drift-storage-object-key-dot-segments
Nov 30, 2026
Merged

spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-3149-drift-storage-object-key-dot-segments

Conversation

@spydon

@spydon spydon commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Object keys with a . or .. segment now throw an ArgumentError before a request is sent, so they can no longer resolve to a URL outside the bucket (for example upload('../../rest/v1/rpc/f')).

  • Matches swift and py, follow-up to SDK-2285 in supabase-js.
  • Keys like .hidden or ..config and encoded %2e%2e stay valid.

SDK-3149

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between ccbc494 and ce2e170.

Files selected for processing: 2

  • packages/supabase_storage/lib/src/storage_file_api.dart
  • packages/supabase_storage/test/path_encoding_test.dart
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the storage This issue or pull request is related to storage label Nov 30, 2026
@spydon
spydon merged commit cb3e12d into main Nov 30, 2026
55 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-3149-drift-storage-object-key-dot-segments branch November 30, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage This issue or pull request is related to storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant