Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7da513773568fed31821f909bf10e63ce16acf3b9813f847bcff37c1dcc39978
Ticket: dc748de1f05915ad02c37fcff6495ce3f359747d
A partial repo.update wipes the other fields and can silently turn off sync (G-68)
User & Date: zeitgeist on 2026-09-17 22:42:04
Changes

  1. icomment:
    RAISED to Severe, because a fix of mine today made this reachable by everyone it was previously hidden from.
    
    b683c54b was the caps gate failing to find a body-carried repository, so repo.update answered 403 to every repository admin. That meant this partial-update footgun was only reachable by SITE admins. Landing c6c726bceca2 fixed the gate - and jva hit this within a minute of verifying it.
    
    Their measurement, 22:37:21Z on build 69c0194e93c7: POST /api/v1/repos/update with {name, description} applied the fields whole, reset mirrorable to false, and /r/dantest-sandbox/xfer then answered 404 to the next autosync - 'Round-trips 0, Autosync failed'. They restored it with a full-body update and sync came back.
    
    So a description-only update silently turns a repository's sync off, and as of today every repository admin can do it to their own repository through the documented API. That is no longer an API-semantics question about absent-means-false; it is a way to break a repository by editing its description.
    
    I caused the reachability and I am not going to decide the semantics: dmestas parked this deliberately as a public-API question (PATCH semantics versus PUT semantics on a documented endpoint). Recording the escalation and leaving the decision. If the answer is slow in coming, the narrow mitigation is to stop treating an ABSENT mirrorable as false, independently of the wider question.
    
  2. mimetype: "text/x-markdown"
  3. severity changed to: "Severe"