AzureStorageExplorer icon indicating copy to clipboard operation
AzureStorageExplorer copied to clipboard

The error message does not make sense when saving '汉字‘ as the metadata key for blob containers/blobs/queues

Open v-xianya opened this issue 4 months ago • 1 comments

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

  1. Expand one storage account -> Blob Containers.
  2. Create a blob container -> Right click the blob container.
  3. Click 'Properties...' -> Click 'Add Metadata' -> Type '汉字' in the metadata key field -> Save it. image
  4. There is a failed activity log -> Click 'Details...'.
  5. 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." image

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. image

v-xianya avatar Apr 09 '24 06:04 v-xianya

We should have validation that catches this case (assuming it is actually invalid).

MRayermannMSFT avatar Apr 15 '24 18:04 MRayermannMSFT