Skip to content

final-state-via introduced inconsistent behavior for long running operations #24451

@necusjz

Description

@necusjz
  • Package Name: azure-core
  • Package Version: 1.24.0
  • Operating System: Windows
  • Python Version: 3.8.10

Describe the bug
The following PR introduces support for "final-state-via":

But, this document says "Azure-AsyncOperation" has higher priority:

Is there an inconsistency when we have both "Azure-AsyncOperation" and "Location" (with final-state-via) is the header?

To Reproduce
E.g., we have a header like this:

headers:
  ...
  azure-asyncoperation:
  - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operations/ca9109a1-acc0-499d-8c9f-9fb75e72050d?api-version=2021-08-01
  ...
  location:
  - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westcentralus/operationResults/ca9109a1-acc0-499d-8c9f-9fb75e72050d?api-version=2021-08-01

azure-core==1.21.1 will always go through "azure-asyncoperation", but azure-core==1.24.0 will go through "location", like:

Expected behavior
Version upgrades keep consistent behavior for long running operations.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions