Azure / Azure/azure-rest-api-specs
`PaloAltoNetworks` - ID's for requests on `RuleStacks` are case sensitive in some instances
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
API Version: `2022-08-29`
Some resource IDs are being treated as case sensitive in requests, I believe this to be an error as my understanding is that the ARM spec expects ID's in requests to be case-insensitive on request, but case sensitive in response?
For example, in this LRO polling response
```
{"id":"/providers/PaloAltoNetworks.CloudNGFW/locations/WESTEUROPE/operationStatuses/d465ddf7-1ccb-4475-9b8d-8b093528faa8*4CAB51C5DA54805C08A62167BB8AB0905594C452830FD2502B164239A40719E8","name":"d465ddf7-1ccb-4475-9b8d-8b093528faa8*4CAB51C5DA54805C08A62167BB8AB0905594C452830FD2502B164239A40719E8","resourceId":"/subscriptions/[REDACTED]/resourceGroups/acctestRG-CAE-230711165837794803/providers/PaloAltoNetworks.CloudNGFW/localRulestacks/testAcc-palrs-230711165837794803","status":"Failed","startTime":"2023-07-11T15:00:37.3304758Z","endTime":"2023-07-11T15:02:05.7671482Z","error":{"message":"Invalid parameter: Rulestack arm id format is incorrect. Expected format: /subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/RS_NAME with status code BadRequest"}}
```
Request has: `PaloAltoNetworks.CloudNGFW`
API requires: `PaloAltoNetworks.Cloudngfw`
In this case, this was an update payload to the RuleStacks `CreateOrUpdate` method.
Contributor guide
Research direction
Start with the PaloAltoNetworks RuleStacks CreateOrUpdate operation and the LRO polling response described for API version 2022-08-29. Compare the casing used in request resource IDs with the provider's expected format, then determine whether this repository contains a specification change that can address it. Done requires a confirmed resolution or an updated API specification documenting the accepted behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100