Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.06k stars 1.19k forks source link

Issue with Case-Sensitivity in Updating displayName Property of API Version Sets #30087

Open Vipersoft-01 opened 3 months ago

Vipersoft-01 commented 3 months ago

Describe the bug When attempting to update the displayName property of an API Version Set in Azure API Management using the SDK in typescript, changes in capitalization alone (e.g., from lowercase to uppercase) are not recognized as an update. This prevents the update from being applied. To work around this issue, we have to make a more substantial change to the displayName (e.g., append an extra character and then remove it) to force the update to be recognized and applied correctly.

To Reproduce Steps to reproduce the behavior:

  1. Use the appropriate SDK call to update an existing API Version Set its displayName property where it only differs due to Lowercase or uppercase changes (e.g., test -> tesT)

Expected behavior It should update the displayName, regardless of it being only a lowercase or uppercase character change.

kazrael2119 commented 3 months ago

will check

kazrael2119 commented 3 months ago

I can repro your issue: If I set the Display Name as "api", then I call the update operation to set the name as "Api", the result is still "api". Only update name as "Api1" then update it as "Api" again, the result should return "Api". not only for JS SDK, I used the rest api to update the name and it also will be the above result.

github-actions[bot] commented 3 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @miaojiang.

qiaozha commented 3 months ago

Add service team @miaojiang to take a look since this problem exist both in rest apis and SDKs.