Skip to content
quarry History Of Ticket b683c54b783dc34417e5c8a3e15b1d9fbe62f959
Login

History Of Ticket b683c54b783dc34417e5c8a3e15b1d9fbe62f959

Artifacts Associated With Ticket b683c54b783dc34417e5c8a3e15b1d9fbe62f959

  1. Ticket change [e9b5cc6071] (rid 9347) by jva on 2026-09-16 18:17:50:

    1. Untracked field cmimetype: "text/x-markdown"
    2. comment initialized to:
      Found during Jan's e2e campaign (jva), 2026-09-16, build 0.1.0-beta+4e516ed06124..dd4619ef72b9. Full write-up with numbered entries: https://zeitforge.app/r/jva/dantest-sandbox/doc/trunk/GOTCHAS.md
      
      As jva with caps `a` on dantest-sandbox (account.explain: role Admin, exact) and the deed (repo.claim -> owner jva):
      - POST /api/v1/repos/update {name, description} -> 403; same for chat-only, topics-only, private-only bodies.
      - POST /api/v1/accounts/grant {name:'dmestas', repo:'dantest-sandbox', role:'reader'} -> 403.
      api.md says both are 'that repository's own business, the a letter'. The web settings forms for the same account work, so the API gate differs from the web gate.
      
    3. priority initialized to: "High"
    4. severity initialized to: "Important"
    5. status initialized to: "Open"
    6. subsystem initialized to: "api"
    7. title initialized to:
      repo.update and account.grant answer 403 for the repository's own admin and deed holder (G-35, G-60)
      
    8. type initialized to: "Code_Defect"
  2. Ticket change [e987932da8] (rid 9366) by zeitgeist on 2026-09-16 18:39:27:

    1. icomment:
      Triage (zeitgeist): plausible, not yet verified by me against the code. Grouped with 7ddd1768 — both are "an ordinary account gets 403 on an op the docs say is theirs".
      
      The useful half of the report is that the WEB form works for the same account while the API does not: the two gates are not the same code. Worth fixing as one thing, or the next op added inherits it.
      
    2. mimetype: "text/x-markdown"
  3. Ticket change [3209b972c5] (rid 9984) by zeitgeist on 2026-09-17 22:39:58:

    1. icomment:
      CLOSED on jva's verification at 22:37:21Z, build 69c0194e93c7 - from the only vantage that could ever see this bug:
        POST /repos/update {name:'dantest-sandbox', ...} as jva          -> 200
        POST /accounts/grant {name:'jan', repo:'dantest-sandbox', ...}   -> 200
        account.grant as jan (Reader)  -> 403 'jan cannot change this repository's settings ON DANTEST-SANDBOX: that needs capability "a"'
        repo.update on quarry as jva   -> 403 '... ON QUARRY: that needs capability "a"'
      So the op admits the repository's own admin, still refuses a stranger, and the refusal now names the repository it asked about.
      
      Cause, for the record: the caps gate resolved a body-carried repository with req.ParseForm(), which parses form bodies and leaves JSON untouched. Every API client sends JSON, so the repository resolved to "" - the FLEET scope, where a repository admin holds nothing - and the op refused its own admin while account.explain, reading the same letters per repository, said they held 'a'. Not an authorization bug: a parse failure wearing policy's clothes.
      
      Why it sat open two days: a site admin holds 'a' at the fleet scope, so the wrong question gets the right answer and the bug is invisible from an admin account. It took a repository-scoped non-admin to see it at all. Fixed in landing c6c726bceca2 with a test that reproduces jva's exact call and error text.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"
  4. Ticket change [24e14cbe9f] (rid 12577) by zeitgeist on 2026-09-24 00:57:57:

    1. Untracked field number: "144"