Bucket IDs containing URL-reserved characters are not addressed literally

Đang mở
#155 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

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

Từ ngày 29/10/2026.

  • #156 của @TimeToBuildBob — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/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ệ
flask, python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by tracing Python get_events and the bucket specific immediate and queued endpoint URL construction described in the report. Add the repository owned supported server and wire regressions mentioned, covering reserved characters, fixed suffixes, query parameters, and force or heartbeat behavior. Run those regressions against the supported Flask API; done means each bucket ID is sent as one literal path segment encoded exactly once.

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

Mô tả

Current master c88cf12c interpolates bucket IDs directly into URL paths. The supported Flask API accepts an ID such as synthetic#fragment through an encoded route, but Python get_events sends /api/0/buckets/synthetic?limit=-1 instead of /api/0/buckets/synthetic%23fragment/events?limit=-1, losing the fixed events suffix into the fragment and returning 404. synthetic?query likewise changes URL syntax.

Expected: treat each bucket ID as one literal path segment, encoding it exactly once, for existing bucket-specific immediate and queued endpoints. Preserve fixed suffixes, query parameters and force/heartbeat semantics. Literal percent and escape-like IDs must not be decoded first. Slash IDs and server naming-policy changes are outside this report.

Reproduced with actual requests transport and an owned loopback listener against an immutable archive of fetched master; independent real Flask controls verify the reserved-character IDs are supported. Ordinary-name control passes. I am preparing repository-owned supported-server/wire regressions and a bounded repair.

Ngôn ngữ chính
Python
Star
73
Fork
76
Merge trung bình
8 ngày 13 giờ
Pull request đã merge (30 ngày)
17

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 ActivityWatch/aw-client

Tất cả issue của ActivityWatch/aw-client

Issue tương tự

Thêm issue về Python

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.