Azure / azure-sdk-for-go

This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at:
https://docs.microsoft.com/azure/developer/go/
MIT License
1.56k stars 801 forks source link

[azqueue] UpdateMessage() does not allow updating message visibility without changing message text #23092

Open MikeZhouSlalom opened 2 weeks ago

MikeZhouSlalom commented 2 weeks ago

Bug Report

UpdateMessage() for Azure Storage Queues does not allow updating message visibility without changing message text.

Given this:

...
options := &azqueue.UpdateMessageOptions{VisibilityTimeout: visibilityTimeout}
response, updateErr := queueClient.UpdateMessage(ctx, messageId, popReceipt, messageText, options)

We have no way of setting messageText to nothing, so updating timeout visibility does not change the message itself.

Documentation in general allows an optional field for messageText, but unable to achieve this:

github-actions[bot] commented 2 weeks ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

tanyasethi-msft commented 1 week ago

Hi @MikeZhouSlalom, thanks for reporting this, we are looking into this issue and will get back with a fix/workaround for the same.