Bucket methods interpolate reserved characters as URL syntax

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

@TimeToBuildBob is already working on this.

Since Oct 28, 2026.

  • #65 by @TimeToBuildBob — open

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-client-js

All issues in ActivityWatch/aw-client-js

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.