Browser shows the Exit Node message, not 'session expired', when the launch token expired before the request

Abierto
#550 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, rust

Línea de trabajo

Start with elastos/crates/elastos-server/src/api/gateway_frontdoor.rs:185 and compare its expired-token response with the Browser route in gateway_browser.rs:602. The issue also points to browser-status.js:17-22 and asks for a full-gateway route test plus a Node test using the exact response body. Done when an expired or inactive Home launch token produces a response the Browser page recognises and both tests cover it.

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

Descripción

When Browser's Home launch token has already expired before the request reaches the Browser route, the gateway front door (elastos/crates/elastos-server/src/api/gateway_frontdoor.rs:185) answers with a generic 403. The Browser page cannot tell that apart from other refusals and shows "This page was blocked by your Exit Node settings." instead of "Browser session expired. Reopening from Home..." and reopening.

Found by the Claude review of fix/201-browser-open-reason (round 5, 6 Nov); it predates that branch. The Browser route itself (gateway_browser.rs:602) now returns the Runtime text the page recognises.

Expected: an expired or inactive Home launch token on a Browser request gets the same recognisable answer at the front door as at the route (status 401, or the Runtime text browser-status.js:17-22 maps), with a route test through the full gateway and a Node test feeding the exact body to browser-status.js.

Lenguaje dominante
Rust
Estrellas
6
Forks
2
Merge medio
1 d 3 h
PR fusionados (30 d)
42

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 elastos/elastos-runtime

Todos los issues de elastos/elastos-runtime

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.