azure-storage-plugin icon indicating copy to clipboard operation
azure-storage-plugin copied to clipboard

The specifed resource name contains invalid characters.

Open lucajung opened this issue 1 year ago • 2 comments

Jenkins and plugins versions report

Error
com.azure.storage.file.share.models.ShareStorageException: Status code 400, "<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidResourceName</Code><Message>The specifed resource name contains invalid characters.

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

Try to upload Files which contain %20 or whitespaces in the filename.

Expected Results

The files will be uploaded without a error.

Actual Results

Throws the following error: com.azure.storage.file.share.models.ShareStorageException: Status code 400, "<Error><Code>InvalidResourceName</Code><Message>The specifed resource name contains invalid characters.

Anything else?

As mentioned in this Issue: https://github.com/Azure/azure-sdk-for-java/issues/11204 the file name should be urlEncoded first.

lucajung avatar Aug 22 '22 09:08 lucajung