Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: REST client drops task cutoff and push-config pagination parameters

Đang mở Phù hợp với người mới
#1,233 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@sumitvairagar đang làm issue này rồi.

Từ ngày 20/10/2026.

  • #1239 của @sumitvairagar — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu với các đường dẫn xây dựng truy vấn REST cho listTasks và listTaskPushNotificationConfigurations, sau đó đọc các trường hợp hiện có trong RestTransportTest ghi lại yêu cầu. Chạy các bài kiểm thử đó và kiểm tra rằng statusTimestampAfter, pageSize và pageToken dạng opaque được đưa vào URL yêu cầu, còn các tham số chưa được đặt thì bị lược bỏ. Hoàn thành khi các trường hợp kiểm thử đều đạt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What happened?

The REST client drops optional query parameters that the server already supports. Reproduced on main at 86a0eb3c601aaa143b389b117f87f69df982ad4a.

For listTasks, setting statusTimestampAfter does not put the cutoff in the request:

ListTasksParams params = ListTasksParams.builder()
        .statusTimestampAfter(Instant.parse("2024-01-01T00:00:00Z"))
        .build();
transport.listTasks(params, null);

Expected /tasks?statusTimestampAfter=2024-01-01T00%3A00%3A00Z; the recorded request has no statusTimestampAfter. The gRPC/JSON-RPC mappings and REST server handler already handle the field.

The same omission affects listTaskPushNotificationConfigurations: pageSize and pageToken never reach /tasks/{taskId}/pushNotificationConfigs. The server consumes them and returns nextPageToken, but the client cannot request that next page.

I added request-recording cases to the existing RestTransportTest and ran them on JDK 17 in an isolated Maven container. Both omission checks fail on main; the control with no optional parameters passes (3 tests, 2 failures, 0 errors/skips).

I can fix these two REST query-building paths and cover the timestamp, opaque page tokens and unset-parameter behavior without changing public APIs. Please assign this scope to me if that works for the project.

Relevant log output
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0
listTasks must send the documented statusTimestampAfter query parameter
listTaskPushNotificationConfigurations: expected pageSize <1> but was <>
Code of Conduct
  • I agree to follow this project's Code of Conduct.

Reproduction and report prepared and posted by an AI assistant for @hutiefang76.

Ngôn ngữ chính
Java
Star
505
Fork
187
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của a2aproject/a2a-java

Tất cả issue của a2aproject/a2a-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.