x-ms-immutability-policy-mode
does not respect ImmutabilityPolicyMode
values
#21685
Labels
AzBlob
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Whatever service is returning the calls I guess has different consts to this repo or uses
strings.ToLower()
.getPropertiesHandleResponse
(generated) is assigningresp.Header.Get("x-ms-immutability-policy-mode")
toImmutabilityPolicyMode
. In this repoImmutabilityPolicyModeLocked
is "Locked" but calls likeNewBlobClient(blob).GetProperties(ctx, nil)
are returning&ImmutabilityPolicyMode("locked")
which is not ideal becauseImmutabilityPolicyMode("locked") == ImmutabilityPolicyModeLocked
is false meaning we can't use these types for checking and instead need to do something likestrings.EqualFold(string(ImmutabilityPolicyMode("locked")), string(ImmutabilityPolicyModeLocked))
.The text was updated successfully, but these errors were encountered: