Bucket methods interpolate reserved characters as URL syntax
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 73/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- nodejs, typescript
- Domain
- api
Research direction
Start by locating the bucket-specific read, write, delete, count, and heartbeat methods that build URL paths in the TypeScript client. Check how the Python aw-server handles encoded bucket paths, then add regression coverage for ordinary, reserved-character, and Unicode IDs alongside supported-server controls. Done means each bucket segment is encoded once, route separators and query parameters remain intact, and the tests pass.
Written by the indexing model from the issue text.
Description
Reproduction\nOn current master c086f63, a synthetic loopback Python aw-server accepts bucket ID `c3e4#fragment`. A direct GET to its encoded events path returns 200 and one event; `AWClient.getEvents('c3e4#fragment')` constructs an unencoded URL and fails with 404 because the fragment truncates the route.\n\nExisting bucket-specific read/write/delete/count/heartbeat methods concatenate the ID into URL paths. Encode each bucket segment once, keeping route separators and query parameters unchanged. Regression coverage should include ordinary, hash, question-mark, literal-percent and Unicode IDs plus supported-server controls. No slash-ID support or naming-policy change is proposed.\n\nTracked locally as tasks/aw-client-js-encode-bucket-path-segments.md; source completion requires merged-master replay, not merely an open PR.
- Dominant language
- TypeScript
- Stars
- 40
- Forks
- 20
- Avg merge
- 10d 20h
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-client-js
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
Add support for pre-merge heartbeatsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in ActivityWatch/aw-client-js
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 66/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
prometheus/docs#3198 ·
Maintainers usually reply within 3 days
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
Chat: Copying a selection that includes the end of a message also copies the actions menu labelsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
suitenumerique/hub#176 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day