Repository navigation
Commit 2280a66
committed
fix(objectql,metadata-protocol)!: an in-process search-field override that names no searchable field is refused, never widened to a default set
The stored-metadata reader seam (`narrowStoredMetadataSearch`) read an
explicit search-field list naming no field as "names none" and wrote the
narrowed default set over it, so `searchFields: []` from a host handler was
served where the door and the engine refuse it. It now passes such a list to
the engine, whose own refusal answers (`400 VALIDATION_ERROR`).
The engine refuses a `searchFields` / `search.fields` override that names
none of the fields its search scans with `400 INVALID_FIELD`, the door's
code, before any driver read, where `resolveSearchFields` dropped the names
and fell back to the whole default set. An override naming some searchable
field keeps its other names intersected away, and an object with no
searchable field keeps its own refusal.
Fixes #28120
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cyi29iG8J3UUXr68AZ1 parent 277275a commit 2280a66
6 files changed
Lines changed: 325 additions & 16 deletions
File tree
- .changeset
- packages
- metadata-protocol/src
- objectql/src
- runtime/src
- spec/src/data
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5186 | 5186 | | |
5187 | 5187 | | |
5188 | 5188 | | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
5189 | 5197 | | |
5190 | 5198 | | |
5191 | 5199 | | |
5192 | 5200 | | |
5193 | 5201 | | |
5194 | | - | |
5195 | | - | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
5196 | 5205 | | |
5197 | 5206 | | |
5198 | | - | |
5199 | | - | |
5200 | | - | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
5201 | 5211 | | |
5202 | 5212 | | |
5203 | 5213 | | |
| |||
5222 | 5232 | | |
5223 | 5233 | | |
5224 | 5234 | | |
| 5235 | + | |
| 5236 | + | |
5225 | 5237 | | |
5226 | 5238 | | |
5227 | 5239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
772 | 819 | | |
773 | 820 | | |
774 | 821 | | |
| |||
13453 | 13500 | | |
13454 | 13501 | | |
13455 | 13502 | | |
13456 | | - | |
13457 | | - | |
| 13503 | + | |
| 13504 | + | |
| 13505 | + | |
13458 | 13506 | | |
13459 | 13507 | | |
13460 | 13508 | | |
| |||
13475 | 13523 | | |
13476 | 13524 | | |
13477 | 13525 | | |
| 13526 | + | |
| 13527 | + | |
| 13528 | + | |
| 13529 | + | |
| 13530 | + | |
| 13531 | + | |
13478 | 13532 | | |
13479 | 13533 | | |
13480 | 13534 | | |
| |||
13503 | 13557 | | |
13504 | 13558 | | |
13505 | 13559 | | |
13506 | | - | |
13507 | | - | |
13508 | | - | |
| 13560 | + | |
| 13561 | + | |
| 13562 | + | |
13509 | 13563 | | |
13510 | 13564 | | |
13511 | 13565 | | |
| |||
0 commit comments