microsoft / AzureStorageExplorer

Easily manage the contents of your storage account with Azure Storage Explorer. Upload, download, and manage blobs, files, queues, tables, and Cosmos DB entities. Gain easy access to manage your virtual machine disks. Work with either Azure Resource Manager or classic storage accounts, plus manage and configure cross-origin resource sharing (CORS) rules.
Creative Commons Attribution 4.0 International
378 stars 87 forks source link

The message text occasionally appears garbled #8321

Open v-xianya opened 4 days ago

v-xianya commented 4 days ago

Storage Explorer Version: 1.37.0-dev (103) Build Number: 20241122.6 Branch: main Platform/OS: Windows11/Windows11/Linux Ubuntu 22.04/MacOS Sequoia 15.0(Apple M1 Pro) Architecture: x64/arm64/x64/arm64 How Found: From running test cases Regression From: Previous release

Steps to Reproduce

  1. Expand one storage account -> Queues.
  2. Create a queue -> Click 'Add' -> The 'Add Message' dialog pops up.
  3. Type 'test' into message text field and ensure the message is stored as Base64 encoded -> Click 'OK'.
  4. Check whether the message text is displayed correctly.

Expected Experience

The message text is displayed correctly Image

Actual Experience

The message text is displayed as garbled characters. Image

Additional Context

If a message is stored as 'Base64 encoded', it might be incorrectly decoded as 'plain UTF-8' and vice versa. Here is the record: Image

craxal commented 3 days ago

Encoding wasn't being used to actually encode the text.