[BUG] The API entered an inconsistent state due to an error when setting the current revision.
@guythetechie がすでに取り組んでいます。
2025年8月26日 から。
評価
この issue はまだ評価されていません。
説明
Release version
v6.0.1.4
Describe the bug
In the attempt to set the revision as current, after the error occurred, the API entered an inconsistent state, losing the version. Consequently, all subsequent attempts to adjust the version failed, as the API became an ‘original’ API, preventing us from creating a v3 or deploying an API with the same name.
the erro that caused the issue:
`info: publisher[0]
Changing current revision on ***center-v3 from 4 to 5...
info: publisher[0]
Putting API ***center-v3...
##[debug]Agent environment resources - Disk: / Available 276932.38 MB out of 347161.04 MB, Memory: Used 1552.00 MB out of 7929.00 MB, CPU: Usage 62.03%
info: publisher[0]
Putting API release apiops-set-current in API ***center-v3...
info: publisher[0]
Deleting API release apiops-set-current from API ***center-v3...
crit: publisher[0]
Application failed.
System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscription/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/apis/***center-v3/releases/apiops-set-current?api-version=2023-09-01-preview failed with status code 409. Content is '{"error":{"code":"ScopeLocked","message":"The scope '/subscriptions/***/resourceGroups/***/providers/Microsoft.ApiManagement/service/***/apis/***center-v3/releases/apiops-set-current' cannot perform delete operation because following scope(s) are locked: '/subscriptions/***/resourceGroups/***'. Please remove the lock and try again."}}'.
`
after that error the api lost the "v3"(***-center/v3) and become just ***-center
Expected behavior
It should revert the changes made in the steps prior to the error and also should not update the revision to one that didn't have any version in the base path.
Actual behavior
Since the incidente, all the versions conflict with the ***-center v3, once the base path is ***-center and not ***-center/v3. PS: it's part of the same version set.
##[error]System.Net.Http.HttpRequestException: HTTP request to URI https://management.azure.com/subscriptions/***/resourceGroups/***-rg/providers/Microsoft.ApiManagement/service/***/apis/***center-v1;rev=6?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 '***center-v1' with the same Path '***-center' as API '***center-v3' unless it's a part of the same version set"}]}}'.
Reproduction Steps
Set the resource group to ScopeLocked for deletion in Azure APIM; after the error, the API lost the version from the base path.
- 主要言語
- C#
- スター
- 448
- フォーク
- 248
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/apiops のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
似ている issue
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
unoplatform/uno#24925 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DamianEdwards/ghcp-spend-tray#39 ·
メンテナーはふだん 1 日以内に返信
-
copilot documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
[Rust][Flaky Test] multiple_deadlines_fire_in_order asserts a wall-clock gap instead of firing orderオープンCI/CD ⚒️ Flaky-tests 🐦
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
valkey-io/valkey-glide#7255 ·
メンテナーはふだん 3 日以内に返信
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
unoplatform/Uno.Core#99 ·