Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

filename that contains certain characters can't be found by the library #559

Open
4191682 opened this issue Mar 7, 2021 · 0 comments
Open

Comments

@4191682
Copy link

4191682 commented Mar 7, 2021

Which service(blob, file, queue, table) does this issue concern?

blob

Which version of the SDK was used?

com.microsoft.azure azure-storage 8.4.0

What problem was encountered?

when file name contains special characters ("鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥"), the CloudBlockBlob.exists() returns false, but the file is actually there.
Here is the example code:

String blobName = "EXP0000001/26-鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥.ppt"; CloudStorageAccount storageAccount = CloudStorageAccount.parse(storageConnectionString); CloudBlobClient blobClient = storageAccount.createCloudBlobClient(); CloudBlobContainer container = blobClient.getContainerReference(containerReference); CloudBlockBlob blob = container.getBlockBlobReference(blobName); System.out.println(blob.exists());

Have you found a mitigation/solution?

No

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant