AzureStorageExplorer
AzureStorageExplorer copied to clipboard
The error message does not make sense when saving '汉字‘ as the metadata key for blob containers/blobs/queues
Storage Explorer Version: 1.33.1 (98) Build Number: 20240409.2 Branch: hotfix/1.33.1 Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Sonoma 14.4(Apple M1 Pro) Architecture: x64/x64/arm64 How Found: Ad-hoc testing Regression From: Not a regression
Steps to Reproduce
- Expand one storage account -> Blob Containers.
- Create a blob container -> Right click the blob container.
- Click 'Properties...' -> Click 'Add Metadata' -> Type '汉字' in the metadata key field -> Save it.
- There is a failed activity log -> Click 'Details...'.
- Check whether the error message makes sense.
Expected Experience
The error message makes sense. Like 'The metadata specified is invalid.'
Actual Experience
The error message doesn't make sense. Error details: "message": "Cannot convert argument to a ByteString because the character at index 10 has a value of 27721 which is greater than 255."
Additional Context
Here is the screenshot for files under file shares when saving metadata whose metadata key is '汉字'. Error details: "stack": "RestError: The metadata specified is invalid. It has characters that are not permitted.
We should have validation that catches this case (assuming it is actually invalid).