[AzCopy] Datalake SDK does not path escape path names when passed to NewDirectoryClient and NewFileClient methods. #22281
Labels
AzDatalake
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
Data Lake Storage Gen2
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Bug Report
.../storage/azdatalake
latest
,Create a directory called #,%,? in a HNS enabled account.
Create a directory client from a filesystem client and perform operations that hit the blob endpoint and dfs endpoint on it.
fsClient.NewDirectoryClient("#,%,?")
Any operations hitting blob endpoint will succeed.
Any operations hitting dfs endpoint will fail with invalid URL escape "%,?"
For the fix, please ensure the same is tested for methods like NewFileClient too.
What did you expect or want to happen?
Hitting either the blob endpoint or the dfs endpoint should succeed.
How can we reproduce it?
Instructions given above
Anything we should know about your environment.
N/A
Related issue Azure/azure-storage-azcopy#2549
The text was updated successfully, but these errors were encountered: