You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e90f4f4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(rest): the one-request record page accepts a related list keyed by a user field
The related-list check in record-page-routes.ts kept a private
lookup/master_detail list and read `reference` raw, so a related list on
sys_user keyed by a `user` field answered 400 invalid_relationship though
its row query follows that field (18.3.0 regression, duly#185). It now asks
the spec's one arbiter, referenceTargetOf, the judgement the engine's
$expand and delete walk read. A field that does not reference the page's
object is still a located 400.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzijwvEjcKQArbvuX9p
fix(rest): the one-request record page accepts a related list keyed by a `user` field again
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
-**Regression in 18.3.0 (#29946, duly#185).**`POST /data/:object/:id/page` (#27713) checked each related list's field against a private `lookup`/`master_detail` list and read `reference` raw, so a related list on `sys_user` keyed by a `user` field (an owner, an assignee) answered `400 VALIDATION_FAILED … is not a lookup or master-detail field that references 'sys_user'`, and the console's full-page record view showed "could not load this record". The related list's own row query (`{ [field]: id }`) follows that field, and 18.2.0 read each related list through that list read, with no type check.
11
+
- The check now asks the spec's one arbiter of a field's target, `referenceTargetOf` (`lookup`, `master_detail`, `user`, `tree`; a `user` field's target is fixed to `sys_user` by its type, whether or not its `reference` spells it), the same judgement the engine's `$expand` and delete walk read. A field that does not reference the page's object is still a located `400 invalid_relationship`: a `user` field on any other object's page, a `lookup` to another object, a `tree` on another object, an unreadable `reference` carrier. The message now reads `… is not a lookup, master-detail, user or tree field that references '<object>'.`
0 commit comments