azure-storage-plugin
azure-storage-plugin copied to clipboard
The specifed resource name contains invalid characters.
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.