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
372 stars 85 forks source link

Garbled message text in 1.14.0 #3154

Closed evictor closed 4 years ago

evictor commented 4 years ago

Storage Explorer Version: 1.14.0 -- just after upgrade, so probably newly introduced bug Build Number: 20200624.3 Platform/OS: macOS Catalina 10.15.5 Architecture: x64 Regression From: Yes, prior release

Bug Description

Message text appears as seen in screenshot in the table, whereas it appears correctly in the "View Message" popup.

image

In the popup (parts obscured for privacy):

image

MRayermannMSFT commented 4 years ago

@evictor is there a chance you could share the full message with us? Or maybe a different one which is also affected by this issue?

evictor commented 4 years ago

Sorry, I should have mentioned this is with an Azure queue.

Here is a simple example of adding a message "Test 123" with UTF-8 encoding:

image

And then the garbled result as it appears in the table:

image

Note the odd expiration time also with year 9999.

Note also that the message body display is correct in the View Message popup:

image

MRayermannMSFT commented 4 years ago

@evictor OK, got it, we'll fix it the encoding issue. As for the "weird date", that's what the server returns for expiration date of a queue message that was added with a time to live of "none".

evictor commented 4 years ago

Got it—thank you for the great product

On Wed, Jul 1, 2020 at 11:43 AM Matthew Rayermann notifications@github.com wrote:

@evictor https://github.com/evictor OK, got it, we'll fix it the encoding issue. As for the "weird date", that's what the server returns for expiration date of a queue message that was added with a time to live of "none".

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/microsoft/AzureStorageExplorer/issues/3154#issuecomment-652585394, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMLRPCVSYCPWG75G7DWIZTRZN7WPANCNFSM4OLPCQQA .

--

michaeldrouin commented 4 years ago

What's happening is the queue message when you open it shows fine, but in the queue list it's trying to decode UTF-8 to Base-64. you can see this by taking what is in your queue message in UTF-8 format and decoding it from Base-64 (not encoding it to Base-64).

MRayermannMSFT commented 4 years ago

We've checked in a fix for this for our hotfix, 1.14.1.