Skip to content

analytics: a where path whose second relationship hop is no field answers 403 naming a synthesized join alias, where a one-hop miss answers 400 INVALID_FIELD #38253

Duplicate

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Filing gate: ① (product defect, reach measured) · Source: fleet. This is the "also seen" row of #35543 that its PR #38218 does not deliver (that PR fixes the empty/blank key only, as the card's Expected section asks). The #35543 dev measured it before and after that PR.

What happens

Admin, stock showcase, before and after PR #38218:

  • POST /api/v1/analytics/query {"cube":"showcase_invoice","measures":["showcase_invoice.count"],"where":{"account.a.b.c.d":"z"}} answers 403 PERMISSION_DENIED: reading "account__a" is not permitted for this user.
  • Control: the 2-hop account.nope answers 400 INVALID_FIELD naming showcase_account.

A multi-hop path whose second hop is not a field reaches the field-read gate as a synthesized join alias (account__a), not the relationship-column existence refusal. Source: os-dev-report 7236169796 on #35543, out_of_scope_findings[0].

Expected

A where relationship path with a hop that names no field answers 400 INVALID_FIELD on every analytics door (/analytics/query, /analytics/dataset/query, MCP query_dataset), naming the object and the hop, as the one-hop miss does and as /data answers. The answer never names an internal alias, and nothing reaches the database. A caller-named non-column expression keeps the #21156 shape-gate 403.

Business reason

A dashboard author with a typo in a deep relationship path is told they lack permission, and is shown an internal alias, instead of being told which field does not exist. That sends them to an admin for a grant that would not help.

Reader who acts

An area:data seat. The landing point is the where-path resolution in packages/services/service-analytics/src/analytics-service.ts (assertWhereFields, the relationship-hop existence check) before the field-read gate.

Blocked-by: #38218

Dedupe

is:issue analytics where multi-hop path 403 → 4 (#35543 open, its parent; #33335, #33626, #20282 closed, other mechanisms). is:issue analytics relationship path synthesized alias → 7, none this mechanism.

Grade: area:data · Bug · p3 · reach: POST /api/v1/analytics/query on the stock showcase (measured above)

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Closed as duplicate · folded into the area:data sweep card #35765 (row comment posted this round). Triage: area:data · domain:server · Bug · p3 · size S. A where path whose second hop names no field answers 403 with an internal alias instead of 400 INVALID_FIELD. That is Impeded × rare ⇒ p3, and small, so it meets sweep admission. Its blocker, PR #38218, has merged. This card's body stays the detail for the row.

    Recorded 2026-11-28T14:19Z.

  3. removed
    pm:queue
    on Nov 28, 2026
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:databugpriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions