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

Offen
#550 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, rust

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
6
Forks
2
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
42

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus elastos/elastos-runtime

Alle Issues in elastos/elastos-runtime

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.