Skip to content
quarry History Of Ticket 8518c09b21
Login

History Of Ticket 8518c09b21

Artifacts Associated With Ticket 8518c09b21

  1. Ticket change [744c1fea98] (rid 925) by dmestas on 2026-08-18 21:07:50:

    1. Untracked field cmimetype: "text/x-markdown"
    2. comment initialized to:
      Fossil can mark a whole ticket private. Two repositories in the corpus carry the `is_private` field. quarry folds it like any other field and gives it no meaning — so a ticket its own tracker marked private is listed, searched, and rendered by quarry to anonymous readers.
      
      This is the same class of defect as the `private_contact` leak fixed in 3918395e, and larger: that one exposed a field, this one exposes an entire ticket.
      
      ## Verify first
      
      Before building anything, confirm what is actually in the served corpus:
      
          SELECT count(*) FROM ticket_field WHERE name = is_private AND value NOT IN (0, "")
      
      If the count is non-zero on a public store, this is a live leak and should be treated as urgent rather than as a feature. If it is zero everywhere, it is a correctness gap to close before someone mirrors a tracker that uses it.
      
      ## Shape
      
      1. Fold `is_private` into a column on the `ticket` table, not just a row in `ticket_field`, so it can be filtered in the same index walk as status.
      2. `ticket.list`, `ticket.get` and the FTS documents all exclude private tickets unless the caller may see them. Search matters as much as the list: a snippet leaks the content whether or not the ticket page is reachable.
      3. Reuse the capability from the field-level ticket rather than inventing a second mechanism.
      4. A private ticket a caller may not see must report NOT FOUND, never forbidden — the same rule `repoFor` already applies to private repositories, and for the same reason: a 403 confirms the ticket exists.
      
      ## Depends on
      
      The capability work, for the "unless entitled" half. The exclusion half depends on nothing and should land first: hiding them from everyone is correct today, exactly as with private_contact.
      
    3. severity initialized to: "Important"
    4. status initialized to: "Open"
    5. title initialized to:
      Private tickets: honour is_private rather than indexing and ignoring it
      
    6. type initialized to: "Feature_Request"
  2. Ticket change [64dd47ff48] (rid 1061) by dmestas on 2026-08-19 11:04:26:

    1. priority changed to: "Immediate"
    2. severity changed to: "Severe"
    3. type changed to: "Code_Defect"
  3. Ticket change [04c0c885e2] (rid 1112) by dmestas on 2026-08-19 12:10:41:

    1. subsystem changed to: "tickets"
  4. Ticket change [ee62b789ad] (rid 1136) by dmestas on 2026-08-19 12:11:29:

    1. status changed to: "Review"
  5. Ticket change [07d89e8c0f] (rid 1137) by dmestas on 2026-08-19 12:11:47:

    1. status changed to: "Review"
  6. Ticket change [9dc2291965] (rid 1152) by dmestas on 2026-08-19 12:35:44:

    1. icomment:
      Fixed across two passes; this one closes it.
      
      **Already held** (from the migration work): the list, the board, search
      (dropped from the corpus, not filtered at query time), and the detail
      page — `TicketByPrefix` answers not-found for a private ticket, so a
      reader cannot even confirm it exists.
      
      **Fixed now:**
      
      - **Timeline events.** Every ticket change wrote an `event` row — id,
        author, date on public display. The fold now applies the same rule as
        the search doc: going private deletes the ticket's event rows, going
        public RESTORES them from ticket_change. An open-time sweep scrubs
        indexes folded before events followed privacy (verified live: tcl's
        33 private tickets, 0 leaked events, timeline clean).
      - **The nav count** now reads `ticket WHERE private = 0` — a count that
        disagrees with the list it sits above is a confirmation leak.
      - **The one-way door.** `ticket.set` resolved ids through the same
        filtered reader, so a private ticket was permanently uneditable —
        nobody could ever un-private one. Writes (token-gated) now resolve
        via `TicketByPrefixAll`; reads keep the refusal. Erring toward
        private is only safe if un-privating stays possible.
      - `TicketPrivate(id)` errs toward withholding: an unknown id answers
        private.
      
      **Known remainders, deliberately out of scope:** attachment blobs
      remain hash-addressable if the hash is known from elsewhere (nothing
      public links them any more); contributor counts include private-ticket
      authors (names only). Both belong to #9561ac07b1's capability design.
      
    2. mimetype: "text/x-markdown"
    3. resolution changed to: "Fixed"
    4. status changed to: "Fixed"
  7. Ticket change [adc0a54741] (rid 1153) by dmestas on 2026-08-19 12:38:12:

    1. status changed to: "Fixed"
  8. Ticket change [b2f23aa4c8] (rid 12468) by zeitgeist on 2026-09-24 00:52:58:

    1. Untracked field number: "33"