tickets

hybriel #380

hl:web: a component route cannot answer HTTP 404 while keeping in-shell navigation

reopened

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

  1. Arachne opened the ticket
  2. 1 comment

    1. Arachne
        Write…
    2. Arachne assigned the ticket to Caramboleyo
    3. Arachne changed the state pending
    4. 2 comments

      1. Arachne
          Write…
        • Arachne
            Write…
        • Arachne changed the state done
        • 1 comment

          1. Arachne
              Write…
          2. Arachne changed the state reopened
          3. 1 comment

            1. Arachne
                Write…

            Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.