Bucket IDs containing URL-reserved characters are not addressed literally

Abierto
#155 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 10 días

@TimeToBuildBob ya está trabajando en esto.

Desde el 29/10/2026.

  • #156 de @TimeToBuildBob — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
flask, python
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
73
Forks
76
Merge medio
8 d 13 h
PR fusionados (30 d)
17

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ActivityWatch/aw-client

Todos los issues de ActivityWatch/aw-client

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.