mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
Fix queue message encoding for Azure (UTF-16 in XML) (#1439)
* Revert "Encode into b64 to avoid illegal xml encoding when sending to Azure (#1425)"
This reverts commit 2c9a5bb4ab
.
* Azure queue to use base64 encoding universally
* Ensure byte size calc is using encoded byte count
* Remove message text extension from blockIP svc
* Remove unused using on blockIp hosted service
This commit is contained in:
@ -7,6 +7,7 @@ using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Azure.Storage.Queues;
|
||||
using Bit.Core.Utilities;
|
||||
|
||||
namespace Bit.Notifications
|
||||
{
|
||||
@ -67,7 +68,7 @@ namespace Bit.Notifications
|
||||
try
|
||||
{
|
||||
await HubHelpers.SendNotificationToHubAsync(
|
||||
message.MessageText, _hubContext, cancellationToken);
|
||||
message.DecodeMessageText(), _hubContext, cancellationToken);
|
||||
await _queueClient.DeleteMessageAsync(message.MessageId, message.PopReceipt);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Reference in New Issue
Block a user