Commit 252f71b
`updateData` probed existence and validated OCC against the path `:id`, built
`{ where: { id: request.id } }`, and then handed the request body to the engine
verbatim — where a truthy scalar `data.id` outranks `where.id`. A body of
`{"id":"rec_2"}` on `PATCH /data/task/rec_1` therefore probed rec_1,
version-checked rec_1, WROTE rec_2, and answered `id: rec_1` beside rec_2's
readback: a silent cross-row write straight past the caller's own `If-Match`.
The path id is now merged over the payload before dispatch
(`{ ...request.data, id: request.id }`) — the same shape the bulk ingress in
`rest-server.ts` has always used, so the repo's two single-write ingresses give
one answer (#4550 / #4434). Triage ruling A of 2026-08-08; routes B (400 on
mismatch) and C (schema ban) were explicitly rejected, and neither the engine's
payload-first dispatch (#5748) nor its by-id payload strip (#6435) is touched.
A non-record payload (`undefined`, `null`, an array) passes through untouched so
this ingress is never kinder than the producer about a malformed call.
Claude-Session: https://claude.ai/code/session_01W6bLax4KMrSfnE1ydFU8Dw
Co-authored-by: Claude <noreply@anthropic.com>
1 parent a5d2573 commit 252f71b
3 files changed
Lines changed: 416 additions & 1 deletion
File tree
- .changeset
- packages/metadata-protocol/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5883 | 5883 | | |
5884 | 5884 | | |
5885 | 5885 | | |
5886 | | - | |
| 5886 | + | |
| 5887 | + | |
| 5888 | + | |
| 5889 | + | |
| 5890 | + | |
| 5891 | + | |
| 5892 | + | |
| 5893 | + | |
| 5894 | + | |
| 5895 | + | |
| 5896 | + | |
| 5897 | + | |
| 5898 | + | |
| 5899 | + | |
| 5900 | + | |
| 5901 | + | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
| 5906 | + | |
| 5907 | + | |
| 5908 | + | |
| 5909 | + | |
| 5910 | + | |
| 5911 | + | |
| 5912 | + | |
| 5913 | + | |
| 5914 | + | |
| 5915 | + | |
| 5916 | + | |
| 5917 | + | |
| 5918 | + | |
| 5919 | + | |
| 5920 | + | |
| 5921 | + | |
| 5922 | + | |
| 5923 | + | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
| 5927 | + | |
| 5928 | + | |
| 5929 | + | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
| 5933 | + | |
| 5934 | + | |
5887 | 5935 | | |
5888 | 5936 | | |
5889 | 5937 | | |
| |||
0 commit comments