fix: handle blank push notification config id consistently across transports
まだ誰も着手していません。
評価
調査の方向性
GetTaskPushNotificationConfigParams class とその constructor validation を調べてください。GrpcTransport と RestTransport の実装を見て、id parameter をどのように扱っているか確認してください。blank-id のケースについて tests を書き、一貫した挙動を保証してください。修正では、両方の transports が blank な id を同じ方法で、存在しないものとして、または空文字列として扱うようにし、それに応じて Javadoc を更新する必要があります。
索引モデルが issue の本文から書いたものです。
説明
GetTaskPushNotificationConfigParams rejects a null id but permits an
empty string, and the two transports diverge on that input:
GrpcTransportsends.setId("").RestTransporttreats it as absent and requests the trailing-slash
"default config" URL.
Identical caller code against the same ClientTransport method therefore
produces two different requests. This aligns both on
and adds coverage for the blank-id path, which was previously untested.
Also corrects the Javadoc on GetTaskPushNotificationConfigParams, which
described id as optional and documented @throws for taskId or tenant
when the constructor actually validates taskId and id.
- 主要言語
- Java
- スター
- 495
- フォーク
- 174
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 48
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
a2aproject/a2a-java のほかの issue
-
[Bug]: NullPointerException in A2ACommonFieldMapper when a struct field has an explicit null value オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
a2aproject/a2a-java#1160 · コメント 1 件 · リアクション 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
a2aproject/a2a-java#1142 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
a2aproject/a2a-java#464 · コメント 1 件 ·
-
sample
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
a2aproject/a2a-java#375 · コメント 5 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
a2aproject/a2a-java#1170 ·
a2aproject/a2a-java の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
inu-appcenter/memorIN-backend#288 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
frontend maui-pilot pilot-ask question
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·