[BUG] [Storage] DataLake Rename does not pass SAS from source to destination when appended on to the Source URL #42000
Labels
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.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Library name and version
Azure.Storage.Files.DataLake 12.18.0-beta.1
Describe the bug
When using
DataLakeFileClient.Rename(..)
with a SAS on the URL of the Source File Client, and no SAS on the Destination Path, it will not use the source SAS.Looks like this has been this way since version 12.12.0 of Azure.Storage.Files.DataLake.
Mitigation 1:
Create the Source Client with a
AzureSasCredential
.Mitigation 2:
Pass the SAS on the destination
DataLakeFileClient destFile = await sasFileClient.RenameAsync(destinationPath: newPath + "?" + sourceSas);
Expected behavior
If source client is created with a SAS on the Uri, and then
Rename
is called, with the destination not having any SAS, the SAS should be passed to the destination.Actual behavior
It will not pass the SAS to the destination.
Reproduction Steps
Environment
n/a
The text was updated successfully, but these errors were encountered: