Azure / Azure/azure-rest-api-specs
[BUG] etag double quoted in Data Collection Rules - Get
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 6k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/4b57132e90ee9adb1627f27f49d9e960cdeabf37/specification/monitor/resource-manager/Microsoft.Insights/stable/2023-03-11/dataCollectionRules_API.json
### API Spec version
2023-03-11
### Describe the bug
The returned etag is double escaped:
`"etag": "\"uuid\"",`
### Expected behavior
the uuid is not double escaped
### Actual behavior
the etag is double escaped
### Reproduction Steps
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2023-03-11
### Environment
curl / https://learn.microsoft.com/en-us/rest/api/monitor/data-collection-rules/get?view=rest-monitor-2023-03-11&tabs=HTTP&tryIt=true#code-try-0
Contributor guide
Research direction
Start with the linked Microsoft.Insights dataCollectionRules_API.json specification at version 2023-03-11, then reproduce the documented GET request. Compare the returned etag with the expected UUID representation; the issue is done when the response no longer double-escapes the etag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, json, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100