gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchmain0f39e181Merge branch 'w64-org-slash' into mainGitoriamain/missions/F3-pulls-list-404.md

2.2 KB

  1. # F3 — repo pull list of a missing or private repo answers 404 (Sol, cap $1.5)
  2. Task line (Apollo 2026-11-10): "Until then, backlog fixes through PRs."
  3. Source: reports/A3b-REPORT.md bug 4 (probe evidence in /media/STORAGE/claude-scratch/A3b/). Rule: DECISIONS.md GO34 ("pages, API and the ssh access check answer 404 / 'No such repository' as for a missing name").
  4. Read first: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (L5, L10, L14, L16, L17, F17, F20).
  5. ## Bug
  6. A stranger (anonymous or logged in without access) opening `/pulls` or `/:orepo/pulls` of a private or missing repo gets HTTP 200 with an empty "missing" page; GO34 says 404. Content does not leak. project.hl routes these with `component = Pulls`; `/pulls/:n` already uses a function route (`pullPage(route, req, &server, PullPage, NotFound)`) that checks visibility and returns the NotFound page with 404.
  7. Fix: route `/pulls` and `/:orepo/pulls` through the same kind of function route (a small `pullsPage` next to `pullPage`, same file, same checks), returning the Pulls component for readers and NotFound with 404 otherwise. Members and public-repo visitors keep exactly today's page. project.hl stays a map (only the route line changes). If the other list pages (/code, /commit, /branch, /releases, /tickets) have the same 200 behaviour, LIST them in the report; do not fix them.
  8. ## Do
  9. 1. `git worktree add -b f3-pulls-404 ../gitoria-F3 main`, `cp -a bin ../gitoria-F3/bin`. Ports 8720–8739 only (`ss -ltn` first; GITORIA_GATE_* variables as in reports/V52-REPORT.md).
  10. 2. Fix; add checks to the matching existing gate test (private repo /pulls as stranger → 404, missing repo → 404, member → 200, public repo stranger → 200); the 404 checks must fail on old code.
  11. 3. Gates LC_ALL=C: `node theme/check-theme.mjs .` and every gate in deploy.sh's GATES list: all 0 failed.
  12. 4. One commit, subject `|||PR pull list of a missing or private repo answers 404`. Do NOT push or merge. Do NOT edit LOG.md, STATUS.md or tickets.
  13. ## Report
  14. reports/F3-REPORT.md (≤15 lines): sha, diff summary, old-code failure of each new check, each gate's count, the other list pages found with 200. Stop servers you started; then stop. Budget ~45 requests.

Branches

Latest commits

  • 0f39e181Merge branch 'w64-org-slash' into mainGitoria
  • 9c72d0bf|||PR org repo addresses work with a trailing slashmre
  • a4a33081Merge branch 'w63-force-push' into mainGitoria
  • 52576cb0force push: defer on a failed scan, one-to-one pairs, docs (#56)mre
  • 5a7b3e68|||PR a force push keeps the same pull request (#56)mre
  • cc1be2d6Merge branch 'w62-pr-close' into mainGitoria
  • 6e03be0apull state: keep the resync marker until the sync ran (#56)mre
  • 93bdd26cpull state: wait for a claimed row, resync when it stays busy (#56)mre
  • e53d284bpull state: stop on a failed branch scan, claim the row on writes (#56)mre
  • d8608224close and reopen: keep a manual close against sync (#56)mre
  • ffb60746|||PR close and reopen pull requests (#56)mre
  • fe209ffeMerge branch 'w56-owner-members' into mainGitoria
  • fa0754c8|||PR repository owner transfer and members API (#55)mre
  • 8862e537Merge branch 'w55-rename-org' into mainGitoria
  • 014d2b7fOne immutable readers snapshot per move for the left-organization event (#53)mre
  • 1859d506Decide who hears a repo left its organization by its readers before the move (#53)mre
  • 499f25f2Review fixes for the Settings organization move (#53)mre
  • ed3b922b|||PR move a repository into an organization in Settings (#53)mre
  • 74ec2af8Merge branch 'w54-repo-rename-pr' into mainGitoria
  • 9f7ce8d8Preserve rename compatibility and live page titlesmre