Skip to content

change owner: the queue-target check looks for a field named queue instead of a provisioned queue column, so an external object gets a queue write instead of the 400 #36262

Open

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Filing gate ① · Source: fleet · found by the #35270 review sweep (run records r04 S5, r03 N4) on PR #36154, re-read on main c30ce97

What happens

Change Owner can move a record into an ownership queue only if the object has queue storage. It decides that by looking for a field named queue in the object's definition, not by asking whether the column really exists in storage. So an external (federated) object that has an owner — where the platform lists a queue field but has no column for it — is sent a queue write instead of the documented "this object has no queue" refusal; and an object whose fields are registered as a list is refused with a sentence that is not true.

  • packages/core/src/security/change-record-owner.ts:213-218: asRecord(def.fields) + hasOwnProperty(fields, 'queue').
  • The engine's own test is storage provenance: packages/objectql/src/assignment-rules.ts:303-305 carriesQueueColumn = resolveInjectedColumnProvenance(schema, 'queue') === 'injected-provisioned', used at :332, :352, :621.
  • The injection plan registers queue wherever it registers owner_id (packages/spec/src/data/injected-system-columns.ts:137-142), so on a registered object the 400 arm practically never fires for the class that lacks storage.
  • What the remote driver answers for the queue write was not traced.

Done when

  • The queue-target check uses the same provenance test as the engine (carriesQueueColumn or resolveInjectedColumnProvenance(def, 'queue') === 'injected-provisioned'), so array- and record-shaped fields answer alike.
  • Pins: a federated object with an owner and an unprovisioned injected queue → 400 "no ownership queue column", no update call; an array-shaped fields registration with a provisioned queue → admitted; control: a local object with a provisioned queue → admitted.
  • Ablation: restore the field-name test and the federated pin goes red.

reach: public HTTP doors POST /api/v1/data/:object[/:id]/change-owner with a queue target, on a writable external object that declares an owner, or an object registered with array-shaped fields. Read from the code, not measured.
Business reason: a queue hand-over on an external object should fail clearly; instead it is pushed to the remote system with an unknown result.
Reader: area:data / domain:server (packages/core security, change-owner).
Dedupe: change owner, queue column, carriesQueueColumn → no open card carries it.
Grade: p3 — narrow object class (external objects with an owner, or array-shaped registration).

Activity

  1. added
    bug
    pm:queue
    domain:server
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (change-owner queue target) · pm:queue; rationale: area:data · Bug · the queue-target check looks for a field named queue instead of a provisioned queue column, which affects a narrow class (external objects with an owner, or array-shaped registration) → p3 as filed · size S. Linked under topic #36238.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions