Azure / Azure/azure-rest-api-specs

[BUG] `VirtualMachines_List` nextLink is not url encoded

Open
#25,640 5 comments 0 reactions 1 assignee Claimed by @TravisCragg-MSFT View on GitHub
Compute Compute - VM customer-reported Mgmt Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

Hi team,

Our customer reported a [BUG](https://github.com/Azure/azure-sdk-for-java/issues/36506) that `nextLink` returned by [VirtualMachines_List](https://github.com/Azure/azure-rest-api-specs/blob/1a925d1afe288a5f20d078bbc89214a36a0e4287/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-07-01/virtualMachine.json#L1088) is not url encoded, resulting in 400 when requesting using `nextLink`.

This behavior exists on latest `2023-07-01` and earlier.

According to [API guideline](https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#collections-include-nextlink-for-more-results),
> Note: The service is responsible for performing any URL-encoding required on the nextLink URL.

this should be a bug for the backend. Please help take a look, thanks!

/cc @weidongxu-microsoft

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.