Skip to content

analytics: an empty-string where key answers 500 DATABASE_ERROR on /analytics/query, /analytics/dataset/query and MCP query_dataset, where /data answers 400 INVALID_FIELD #35543

Open

Description

@objectstack-fleet

qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

Found beside the clauses of dashboards.cube-query by the milestone acceptance #35539, at 92121196 on the stock showcase. Reproduced twice by the runner and twice by its helper.

Reproduction (admin)

  • POST /api/v1/analytics/query with {"cube":"showcase_invoice","measures":["showcase_invoice.count"],"where":{"":"z"}} → 500 DATABASE_ERROR. The server log says SQLITE_ERROR … near "=": syntax error.
  • POST /api/v1/analytics/dataset/query with {"datasetName":"showcase_invoice_metrics","selection":{"measures":["invoice_count"],"runtimeFilter":{"":"z"}}} → 500.
  • MCP query_dataset with the same filter → isError, DATABASE_ERROR.
  • Control: POST /api/v1/data/showcase_invoice/query with {"where":{"":"z"}} → 400 INVALID_FIELD.

Also seen, not yet reproduced twice

  • A blank key " " answered 403 PERMISSION_DENIED.
  • A four-hop dotted path to fields that do not exist (account.a.b.c.d) answered 403, naming a synthesized alias.

Both should be 400 too.

Expected

400 INVALID_FIELD at the analytics entry for an empty or blank filter key, as /data answers. A malformed body never reaches the driver.

Not a security finding: the key is quoted as an identifier and no value reaches the statement. The same class as the empty-projection 500 (#33840), on a different key.

QA-source: #35539 · dashboards.cube-query · observed beside the clauses

Activity

  1. added
    bug
    area:reports
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:data · Bug · Impeded (an empty-string where key answers 500 instead of a 400 refusal on three analytics doors) · rare, reproduced four times → p3 as set; kept open because a 500 hides the cause. area:reports → area:data.

  3. added
    domain:server
    pm:queue
    and removed
    area:reports
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:17Z · This card now carries a fold group. Shared mechanism: malformed input on the analytics query doors answers 500 DATABASE_ERROR instead of a 400 refusal. The cards below, unclaimed and unstarted, are closed into this one so a single claimant fixes them in one PR. Each row's source card keeps its full body; this card closes when every row below and its own ask are done. Grade stays the highest of the group.

  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    2026-11-20T05:33Z · Correction to the fold above: #33840 was claimed by seat 7 (os-tesla) moments before the fold, so it stays its own card and is not a row here. This card carries only its own ask.

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