Skip to content

[Bug]: optional tenant in spec vs non-null tenant + misleading docs in Java SDK #844

Closed

Description

@Tyler-Bath

What happened?

The A2A protocol allows listing tasks without a tenant (e.g. GET /tasks as the primary HTTP binding). The Java SDK models tenant on ListTasksParams in a way that conflicts with how other optional parameters are modeled: tenant must be non-null (empty string is used for “unset”), while sibling optional fields use @nullable and null. Javadoc also claims InvalidParamsError for null tenant, but the code uses Assert.checkNotNullParam, which throws IllegalArgumentException.

Should tenant be made nullable so it does not have to be provided on List tasks and/or other requests?

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Apr 30, 2026
  2. Wesley273 commented on Jun 2, 2026

    @Wesley273

    When we used a2a in the project, request all went through the gateway.

    Our gateway path is tenant-specific by itself, so we did not utilize the official tenant division capability. Otherwise, there will be two tenant identifiers in the URL path.

    I think it should not be mandatory to divide the tenants?

  3. self-assigned this
    on Jun 3, 2026
  4. added a commit that references this issue on Jun 3, 2026
    cbde8b7
  5. added a commit that references this issue on Jun 8, 2026
    ac7efa5
  6. added a commit that references this issue on Jun 19, 2026
    aeb19e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions