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 truncating signature on SAS #1007

Merged
merged 2 commits into from
Dec 12, 2022

Conversation

damiondoesthings
Copy link
Contributor

Description

This fixes the truncation of Azure SAS signatures ending in "=", i.e. when using non-url-encoded SAS tokens.

Related Issue(s)

closes #1003

Some(k) => k,
};
let v = match kv.next().filter(|k| !k.chars().all(char::is_whitespace)) {
let kv = kv_pair_str.trim().split_once('=');
Copy link
Member

@houqp houqp Dec 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simplified to:

Suggested change
let kv = kv_pair_str.trim().split_once('=');
let (k, v) = kv_pair_str.trim().split_once('=').ok_or(BuilderError::MissingCredential)?;

houqp
houqp previously approved these changes Dec 11, 2022
Copy link
Collaborator

@roeap roeap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @damiondoesthings - LGTM!

@roeap roeap merged commit 3a9b9b3 into delta-io:main Dec 12, 2022
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.

Azure SAS signatures ending in "=" don't work
3 participants