dwsmith1983 opened a new issue, #3749:
URL: https://github.com/apache/iceberg-rust/issues/3749

   ### Apache Iceberg Rust version
   
   main (a7160a0)
   
   ### Describe the bug
   
   `AzureStoragePath::relative_path` 
(`crates/storage/opendal/src/azdls.rs:242`) takes the last `self.path.len()` 
bytes of the raw location, where `self.path` is `url.path()`. `url.path()` has 
no query and is percent-encoded, so the slice only lines up when the raw 
location has no query and nothing the parser re-encodes.
   
   With a query, the relative path is a piece of the query string. opendal then 
reads or writes that key, and since it is usually a SAS token, it also shows up 
in opendal's error context.
   
   ### To Reproduce
   
   
`abfss://[email protected]/dir/file.parquet?sv=1&sig=SECRETSECRET`
   
   `url.path()` is `/dir/file.parquet`, so the last 17 bytes of the input are 
used and the relative path comes out as `&sig=SECRETSECRET`.
   
   ### Expected behavior
   
   The relative path is `dir/file.parquet`. Slicing from where the path starts 
in the input, rather than from the end, would fix the query case.
   
   ### Willingness to contribute
   
   I cannot contribute a fix for this bug at this time
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to