Bucket methods interpolate reserved characters as URL syntax

Aperta
#60 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@TimeToBuildBob ci sta già lavorando.

Dal 28/10/2026.

  • #65 di @TimeToBuildBob — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
nodejs, typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
40
Fork
20
Merge medio
10g 20h
PR unite (30g)
7

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ActivityWatch/aw-client-js

Tutte le issue di ActivityWatch/aw-client-js

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.