gitoria
All repositories: gitoria
2.6 KB
# S25 — no session for a cookieless login error (gitoria#25)Task line (Apollo, 2026-11-11): "GO #25 session fix, one Sonnet worker, cap $2. ... Proof: a cookieless GET /login/callback without a code creates no session file on live (count the files before and after), and a normal login still works. Leave the existing files alone."## RulesRead fully first: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md and /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (L1–L19, F1–F21). For .hl, copy a working shape from the existing code. No hand-written JS. Logins never expire: never rename the cookie, add TTLs or sign anyone out. Do NOT push, do NOT deploy, do NOT touch byrodin or any session files. Never kill processes by pattern; exact pid only. Ports: only 8720–8737 on loreana (check `ss -ltn` first).## WhereWorktree /media/STORAGE/projects/WorldAPI/gitoria.worldapi.org/../gitoria-S25 (branch s25-no-session-on-login-error, from main 678d630). Work and commit only there. Run `LC_ALL=C`.## The buglib/api.hl:123 — a GET on /login/callback without ident_code calls loginFailed → failedLogin (lib/users.hl:178), which MINTS a session for a request without a cookie and saves `data.loginError`. Crawlers do this ~1000×/h; hl:web keeps sessions with data 14 days. Live: 72k such files.## FixWhen the request has no session (req.session == null), a login failure must not mint or save a session and must not set a cookie: just 302 to /login/failed, which then shows its generic text (components/loginfailed.hl already falls back when session is null). When a session already exists, keep today's behaviour (loginError stored in it, shown on /login/failed). Same for the other loginFailed paths (GET only, x.error). Keep the change small (topic logic in lib/users.hl / lib/api.hl).## Test- Add a gate check (extend the test that already covers /login/callback or /login/failed, e.g. tests/security.mjs or tests/signin-return.mjs — pick the one that fits): against a local server with its own sessions dir, count session files, do a cookieless GET /login/callback (no code) → expect 302 to /login/failed, no Set-Cookie, file count unchanged; with an existing session cookie → loginError still shown on /login/failed.- Run the full gates: `node theme/check-theme.mjs .`, `node tests/browser.mjs`, and the GATES list in deploy.sh (give each a port from 8720–8737). All 0 failed; normal login (ident) gates must stay green.## ReportCommit as one commit with subject `|||PR No session for cookieless login errors` (no '#N' in the subject). Write reports/S25-REPORT.md in the worktree (diff summary, the new check, gate counts per gate). Then stop.
Branches
Latest commits
- 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
- c3d95b6e|||PR separate names and addresses, rename repositories in Settings (#53)mre
- ce08920dMerge branch 'w52c-header-phone' into mainGitoria
- 0bab9e46|||PR header: ident status wraps on phones instead of clippingmre
- e7af3eceMerge branch 'w52b-approval-followup' into mainGitoria
- c01e66c6|||PR approvals follow-up: live Merge after status writes, helpers (#52)mre
- 841da497Merge branch 'w53-pulls-speed-pr' into mainGitoria
- 80307ae2|||PR pulls page cache: live PR numbers, complete scans onlymre
- 69141f65|||PR pulls page: cache the git part per repo by branch tipsmre
- 155861f6Merge branch 'w52-person-approval' into mainGitoria
- b5435de8|||PR person approvals: second Kunibert round (#52)mre
- 3a8b2fb8|||PR person approvals: Kunibert review fixes (#52)mre