Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure-AsyncOperation poller can mistakenly fail in some cases #23321

Closed
jhendrixMSFT opened this issue Aug 13, 2024 · 2 comments
Closed

Azure-AsyncOperation poller can mistakenly fail in some cases #23321

jhendrixMSFT opened this issue Aug 13, 2024 · 2 comments
Assignees

Comments

@jhendrixMSFT
Copy link
Member

jhendrixMSFT commented Aug 13, 2024

The async poller assumes that for PATCH/PUT that it's a RELO LRO thus can GET the original request URL for the final state.

https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azcore/internal/pollers/async/async.go#L131-L134

This might not be true in some cases like proxy resources. In these cases, we should honor the final-state-via setting.

@jhendrixMSFT
Copy link
Member Author

See also #19889 which is related.

@jhendrixMSFT
Copy link
Member Author

Per discussion, final-state-via is for POST only. The docs have been updated, see Azure/autorest#5004.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant