[BUG] copyFromUrlWithResponse fails with 404 CannotVerifyCopySource if blob name contains %20 #11204
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Scanario
my%20testfile.txt
. You see this name in the AzurePortal (Its not the URL Encoded name)Application functionality:
Example:
my%20testfile.txt
URL is e.g.
https://xyz.blob.core.windows.net/container/my testfile.txt
(URL Encoding)my testfile.txt
Error
Exception: com.azure.storage.blob.models.BlobStorageException: Status code 404
Errorcode: CannotVerifyCopySource
Message: The specified blob does not exist.
Reproduce
%20
in its name.targeBlockBlobClient.copyFromUrlWithResponse(...)
Expected behavior
Successful copy of the file
Workaround
.. for now is to replace the character
%
with%20
.my%20testfile.txt
tomy%2020testfile.txt
https://xyz.blob.core.windows.net/container/my%20testfile.txt
The text was updated successfully, but these errors were encountered: