Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage_client): prevent the SDK from throwing when null path was returned from calling createSignedUrls() #599

Merged
merged 7 commits into from Aug 23, 2023

Conversation

dshukertjr
Copy link
Member

@dshukertjr dshukertjr commented Aug 23, 2023

What kind of change does this PR introduce?

On certain versions of Storage-api, the path value that was supposed to be returned when calling createSignedUrls() was missing. This PR adds a safety guard for when the SDK is used against such versions.

Related supabase/storage#353

@dshukertjr dshukertjr changed the title fix: createSignedUrls fix: createSignedUrls throwing exceptions. Aug 23, 2023
@dshukertjr dshukertjr changed the title fix: createSignedUrls throwing exceptions. fix: createSignedUrls can be called without throwing. Aug 23, 2023
@dshukertjr dshukertjr marked this pull request as ready for review August 23, 2023 08:50
@dshukertjr dshukertjr changed the title fix: createSignedUrls can be called without throwing. fix(storage_client): prevent the SDK from throwing when null path was returned from calling createSignedUrls() Aug 23, 2023
@dshukertjr dshukertjr merged commit e25a70d into main Aug 23, 2023
9 of 10 checks passed
@dshukertjr dshukertjr deleted the fix/signed-urls branch August 23, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants