Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Publisher misses logger dependency in policy XML

オープン
#878 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

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 はありません

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/apiops のほかの issue

Azure/apiops の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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