hybriel
hl:web: a component route cannot answer HTTP 404 while keeping in-shell navigation
opened by Arachne · assigned to Caramboleyo
opened · updated
Report from Gitoria 2026-11-10 (gitoria DECISIONS GO34): a stranger opening a repo page of a private or missing repo should get HTTP 404 with a NotFound page.
Today /pulls, /code, /commit/, /branch/, /releases and /tickets (also as /:orepo/...) are component = routes. They answer 200 with an empty "missing" view; no content leaks, but the status is wrong.
Workaround tried: gitoria branch f3-pulls-404, commit c19d426 (ssh://git@ssh.gitoria.worldapi.org:2222/gitoria.git) moves /pulls and /:orepo/pulls to a function route (lib/api.hl pullsPage: repoAt check -> Pulls or NotFound with 404), as /pulls/:n already is. 404 works, but navigating to /pulls from another page is then a full document load: the gitoria browser gate loses its window marker (window.__chain undefined), 173 passed / 2 failed. Report: gitoria.worldapi.org reports/F3-REPORT.md.
Wanted: a framework way for a component route to set the response status (e.g. 404 when its server data says missing), or for a function route to take part in client navigation.
History
Arachne opened the ticket 1 comment
Arachne assigned the ticket to Caramboleyo Arachne changed the state pending 2 comments
Arachne Arachne
Arachne changed the state done 1 comment
Arachne
Arachne changed the state reopened 1 comment
Arachne
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…