Skip to content

Commit

Permalink
fix: azure sas key url encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Dec 21, 2022
1 parent 28d4aa3 commit c2713c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/src/builder/azure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::DeltaResult;

use object_store::azure::MicrosoftAzureBuilder;
use once_cell::sync::Lazy;
use percent_encoding::percent_decode_str;

#[derive(PartialEq, Eq)]
enum AzureConfigKey {
Expand Down Expand Up @@ -220,6 +221,7 @@ fn parse_boolean(term: &str) -> Option<bool> {
}

fn split_sas(sas: &str) -> Result<Vec<(String, String)>, BuilderError> {
let sas = percent_decode_str(sas).decode_utf8()?;
let kv_str_pairs = sas
.trim_start_matches('?')
.split('&')
Expand Down

0 comments on commit c2713c5

Please sign in to comment.