Azure / Azure/azure-rest-api-specs

Microsoft.AppPlatform/Spring/gateways/routeConfigs@2022-11-01-preview - ROUNDTRIP_INCONSISTENT_PROPERTY

Open
#22,845 0 comments 0 reactions 0 assignees View on GitHub
AppPlatform Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

## Microsoft.AppPlatform/Spring/gateways/routeConfigs@2022-11-01-preview - ROUNDTRIP_INCONSISTENT_PROPERTY

### Description

I found differences between PUT request body and GET response:

- .properties.appResourceId: expect /subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/spring/henglu1122/apps/acctest-sca-henglu, but got /subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/apps/acctest-sca-henglu

```json
{
"properties": {
"appResourceId": Got "/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/apps/acctest-sca-henglu" in response, expect "/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/spring/henglu1122/apps/acctest-sca-henglu"
}
}
```

### Details

1. ARM Fully-Qualified Resource Type
```
Microsoft.AppPlatform/Spring/gateways/routeConfigs
```

2. API Version
```
2022-11-01-preview
```

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

4. OperationId
```
TODO
e.g., VirtualMachines_Get
```

5. Swagger GitHub permalink
```
TODO,
e.g., https://github.com/Azure/azure-rest-api-specs/blob/60723d13309c8f8060d020a7f3dd9d6e380f0bbd
/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json#L9065-L9101
```

6. Error code
```
ROUNDTRIP_INCONSISTENT_PROPERTY
```

7. Request traces
```
PUT https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/spring/henglu1122/gateways/default/routeConfigs/route1?api-version=2022-11-01-preview
Accept: application/json
Authorization: REDACTED
Content-Length: 210
Content-Type: application/json
User-Agent: HashiCorp Terraform/1.3.7 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/v1.4.0 pid-222c6c49-1b0a-5959-a213-6608f9eb8820
X-Ms-Correlation-Request-Id: REDACTED
--------------------------------------------------------------------------------
{"name":"route1","properties":{"appResourceId":"/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/spring/henglu1122/apps/acctest-sca-henglu"}}
--------------------------------------------------------------------------------

RESPONSE Status: 201 Created
Azure-Asyncoperation: REDACTED
Cache-Control: no-cache
Content-Length: 789
Content-Type: application/json; charset=utf-8
Date: Wed, 01 Mar 2023 03:34:31 GMT
Expires: -1
Location: REDACTED
Pragma: no-cache
Request-Context: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Client-Request-Id: 0e917b94-12e4-4a50-b642-6232a9ad24da
X-Ms-Correlation-Request-Id: REDACTED
X-Ms-Ratelimit-Remaining-Subscription-Writes: REDACTED
X-Ms-Request-Id: 4509c308-e9d6-49aa-abcc-261157cc23a7
X-Ms-Routing-Request-Id: REDACTED
X-Rp-Server-Mvid: REDACTED
--------------------------------------------------------------------------------
{"properties":{"appResourceId":"/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/apps/acctest-sca-henglu","protocol":"HTTP","routes":[],"provisioningState":"Creating"},"type":"Microsoft.AppPlatform/Spring/gateways/routeConfigs","id":"/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/gateways/default/routeConfigs/route1","name":"route1","systemData":{"createdBy":"0ddf9866-48e9-4e1d-a880-17a2ea0c9ec6","createdByType":"Application","createdAt":"2023-03-01T03:34:30.7855322Z","lastModifiedBy":"0ddf9866-48e9-4e1d-a880-17a2ea0c9ec6","lastModifiedByType":"Application","lastModifiedAt":"2023-03-01T03:34:30.7855322Z"}}
--------------------------------------------------------------------------------

GET https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/spring/henglu1122/gateways/default/routeConfigs/route1?api-version=2022-11-01-preview
Accept: application/json
Authorization: REDACTED
User-Agent: HashiCorp Terraform/1.3.7 (+https://www.terraform.io) Terraform Plugin SDK/2.8.0 terraform-provider-azapi/v1.4.0 pid-222c6c49-1b0a-5959-a213-6608f9eb8820
X-Ms-Correlation-Request-Id: REDACTED
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Wed, 01 Mar 2023 03:35:01 GMT
Expires: -1
Pragma: no-cache
Request-Context: REDACTED
Strict-Transport-Security: REDACTED
Vary: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Client-Request-Id: acf4cfc4-b916-4f66-835e-5408da332ae8
X-Ms-Correlation-Request-Id: REDACTED
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 0f26f724-4817-4833-a7a7-949f14b8fdd0
X-Ms-Routing-Request-Id: REDACTED
X-Rp-Server-Mvid: REDACTED
--------------------------------------------------------------------------------
{"properties":{"appResourceId":"/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/apps/acctest-sca-henglu","protocol":"HTTP","routes":[],"provisioningState":"Succeeded"},"type":"Microsoft.AppPlatform/Spring/gateways/routeConfigs","id":"/subscriptions/{subscription_id}/resourceGroups/henglu1122-gateway/providers/Microsoft.AppPlatform/Spring/henglu1122/gateways/default/routeConfigs/route1","name":"route1","systemData":{"createdBy":"0ddf9866-48e9-4e1d-a880-17a2ea0c9ec6","createdByType":"Application","createdAt":"2023-03-01T03:34:30.7855322Z","lastModifiedBy":"0ddf9866-48e9-4e1d-a880-17a2ea0c9ec6","lastModifiedByType":"Application","lastModifiedAt":"2023-03-01T03:34:30.7855322Z"}}
--------------------------------------------------------------------------------
```

### Links
1. [Semantic and Model Violations Reference](https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/Semantic-and-Model-Violations-Reference.md)
2. [S360 action item generator for Swagger issues](https://aka.ms/swaggers360)

Contributor guide

Open the contributing guide

Research direction

Read documentation/Semantic-and-Model-Violations-Reference.md, then locate the Microsoft.AppPlatform/Spring/gateways/routeConfigs definition for API version 2022-11-01-preview. Compare the reported PUT and GET appResourceId values and determine whether the specification or service behavior accounts for the casing difference; done means the round-trip inconsistency is resolved or accurately represented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.