Azure / Azure/azure-rest-api-specs

etag has quotes identified in operation "BlobContainers_GetImmutabilityPolicy" of Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies on API version 2021-08-01

Open
#19,134 2 comments 0 reactions 0 assignees View on GitHub
Service Attention Storage
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

## etag has quotes identified in operation "BlobContainers_GetImmutabilityPolicy" of Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies on API version 2021-08-01

### Description

From its GET response, etag has quotes.

```
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/henglu516/providers/Microsoft.Storage/storageAccounts/henglu516/blobServices/default/containers/henglu516/immutabilityPolicies/default",
"name": "default",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
"etag": "\"8da395377744ec0\"",
"properties": {
"allowProtectedAppendWrites": false,
"immutabilityPeriodSinceCreationInDays": 4,
"state": "Unlocked"
}
}
```

### Reference

1. ARM Fully-Qualified Resource Type
```
Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies
```

2. API Version
```
2021-08-01
```

3. Swagger issue type
```
Swagger Correctness
```

4. OperationId
```
BlobContainers_GetImmutabilityPolicy
```

5. Swagger GitHub permalink
```
https://github.com/Azure/azure-rest-api-specs/blob/390dd7d1b7e6acb772e4cbfd269ddfdd412e11b4/specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/blob.json#L1070
```

6. Error code
```
The etag's value has quotes.
```

7. Request traces
```
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/henglu516/providers/Microsoft.Storage/storageAccounts/henglu516/blobServices/default/containers/henglu516/immutabilityPolicies/default?api-version=2021-08-01
Accept: application/json
Authorization: REDACTED
User-Agent: HashiCorp Terraform/1.1.4 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/dev
X-Ms-Correlation-Request-Id: REDACTED
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Type: application/json
Date: Thu, 19 May 2022 04:53:08 GMT
Etag: "8da395377744ec0"
Expires: -1
Pragma: no-cache
Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
Strict-Transport-Security: REDACTED
Vary: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: REDACTED
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 3262bd11-6fdc-4bf9-81d4-c12c97b9e750
X-Ms-Routing-Request-Id: REDACTED
--------------------------------------------------------------------------------
{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/henglu516/providers/Microsoft.Storage/storageAccounts/henglu516/blobServices/default/containers/henglu516/immutabilityPolicies/default","name":"default","type":"Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies","etag":"\"8da395377744ec0\"","properties":{"allowProtectedAppendWrites":false,"immutabilityPeriodSinceCreationInDays":4,"state":"Unlocked"}}
--------------------------------------------------------------------------------: timestamp=2022-05-19T12:53:08.772+0800
```

Contributor guide

Open the contributing guide

Research direction

Open specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/blob.json around line 1070 and inspect the BlobContainers_GetImmutabilityPolicy response schema against the quoted etag shown in the issue. Run the applicable Swagger or OpenAPI correctness validation, and finish when the specification accurately represents the intended etag value.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, backend-api-design, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.