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

Aperta
#550 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, rust

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
Rust
Stelle
6
Fork
2
Merge medio
1g 3h
PR unite (30g)
42

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

Tutte le issue di elastos/elastos-runtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.