Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix: handle blank push notification config id consistently across transports

未关闭 适合新手
#1,012 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
领域
api, backend

调研方向

检查 GetTaskPushNotificationConfigParams 类及其构造函数校验。查看 GrpcTransport 和 RestTransport 的实现,了解它们如何处理 id 参数。为 blank-id 情况编写测试,以确保行为一致。修复应使两个 transports 以相同方式处理空白的 id,要么视为缺失,要么视为空字符串,并相应更新 Javadoc。

由索引模型根据 Issue 内容生成。

描述

GetTaskPushNotificationConfigParams rejects a null id but permits an
empty string, and the two transports diverge on that input:

  • GrpcTransport sends .setId("").
  • RestTransport treats 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
星标
504
派生
184
平均合并
1 天 13 小时
30 天内合并 PR
31

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

a2aproject/a2a-java 的其他 Issue

查看 a2aproject/a2a-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。