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
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 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
- 2a89d8d0|||PR person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)mre
- 83f0c953Report person approval verificationmre
- 3ae94b86Record browser failures and verify owned tab cleanupmre
- 54eec687Gate person approvals and merge alternativesmre
- 12b08829Add person approvals for pull request headsmre
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria