[BUG] Publisher misses logger dependency in policy XML
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 70/100
調査の方向性
Start by tracing the publisher's policy XML dependency parsing and the existing handling for named values, policy fragments, and backend IDs. Add the logger reference to the dependency behavior described in the issue, then reproduce the Azure API Management publish with the supplied policy XML and verify that the logger is created before the policy.
索引モデルが issue の本文から書いたものです。
説明
Release version
v7.0.1
Describe the bug
Summary
When an API policy references a logger via log-to-eventhub logger-id="...", the publisher can attempt to PUT the policy before the logger resource exists in APIM. This results in a 400 validation error such as:
Logger not found
Root cause
The publisher builds dependency edges from parsed policy XML for things like:
- named values
- policy fragments
- backend IDs
but it does not currently parse logger references used in:
- log-to-eventhub logger-id="..."
As a result, the policy has no predecessor relationship to the logger, so parallel resource processing can PUT the policy before the logger resource has been created.
Expected behavior
When an API policy references an APIM logger in the XML policy, the publisher should create a dependency edge from that logger resource to the policy resource and publish the logger before the policy
Actual behavior
The publisher does not detect logger references in policy XML. As a result, the policy can be published in parallel with the logger, and APIM rejects the request with a validation error like:
Reproduction Steps
- Create or include an APIM logger resource, for example azureeventhublogger.
- Update an API policy that references that logger in XML, such as:
<policies>
<inbound>
<log-to-eventhub logger-id="azureeventhublogger" />
<base />
</inbound>
</policies>
- Run the publisher against the target APIM environment with that logger and policy in the artifacts (last commit)
- Observe that the publisher may PUT the policy before the logger is created.
- APIM returns 400 Bad Request with Logger not found for the policy.
- 主要言語
- C#
- スター
- 448
- フォーク
- 247
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/apiops のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
似ている issue
-
core dependencies
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug frontend good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Down / Waiting for removal
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100