Azure / Azure/apiops

[BUG] API suffix not allowed to duplicate for version sets

オープン
#712 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
448
フォーク
247
PR マージ指標
30日以内にマージされた PR はありません

説明

### Release version

v6.0.2-alpha.1.0.2

### Describe the bug

APIs have same API suffix of versions, it throws an error
##[error]System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/*********resourceGroups/Resource-group/providers/Microsoft.ApiManagement/service/APIM/apis/APIr-v2;rev=2?api-version=2023-09-01-preview failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"path","message":"Cannot create API 'API-v2' with the same Path 'glb/supplier' as API 'API-v03' unless it's a part of the same version set"}]}}'.

### Expected behavior

I can manually create new version of API in the same version set with same API suffix which is not possible via APIops

### Actual behavior

APIops throws an error, not allowing to create API version sets with same API suffix

### Reproduction Steps

1. Create an API in API management
2. create version 1 and 2 with same API suffix
3. Migrate API via APIops

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ソースファイルもテストも指定されていません。まず、同じバージョンセットと同じ API サフィックスを持つ 2 つの API バージョンでマイグレーションを再現し、次に API を作成する APIops のデプロイパスを追跡してください。マイグレーションが重複パスの検証エラーなしで成功し、既存の動作がテストで引き続きカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp
領域
api, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。