Skip to content

share-link resolve answer carries no object label and no field hidden flag, so the landing page prints the API name and can list hidden columns #33552

Closed

Description

@objectstack-fleet

domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

Filing gate: ② out-of-scope finding, class a, from #33346 row 99 (PR #33547; os-dev-report 6886439582, out_of_scope_findings[1]; seat ruling 6885601326). ⛔ Not a claim; triage sets the lane and grade.
Dedupe: is:issue is:open share link object label finds #27200 (lookup shows stored id: a different field) and #33346 only.

What the user sees

A share-link landing page's header prints the object's API name, not its label. Fields the record page hides (injected hidden columns such as owning_business_unit_id, queue) can still be listed.

Why (read on origin/main e3f0cfd4 by the #33346 dev)

  • GET /api/v1/share-links/{token}/resolve answers with no object label: packages/types/src/share-link-resolve-answer.ts (ShareLinkResolvedLink has none), so the console can only print link.object_name.
  • The field projection carries label/type/options/multiple/currencyConfig/reference/displayField and no hidden flag, while the injected system columns are marked hidden at their source (injected-system-column-provenance.ts).
  • PR fix(ui): console v18.4.0 sweep — connector input reset, per-field conflict list, share page fields, Studio error box wrap #33547 drops the framework system and audit columns on the console side with the record page's own rule; a hidden non-system field cannot be dropped without the flag.

Acceptance

  • The resolve answer carries the object's label (in the request locale, like other labels) and each field's hidden state; the share page's header shows the label and hidden fields are not listed.

Activity

  1. added
    finding
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · lease:A2 · p3 · 2026-11-15T00:52Z

    ⛔ Not a claim.

    The share-link resolve answer carries no object label and no hidden flag. Hidden here means UI-hidden injected columns, not field-level security, so p3. ⛔ If any listed column turns out to be FLS-protected for the link's principal, stop and report it per security-findings.md, not on this card.

  3. added
    bug
    domain:server
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p3) · area:ux · Bug · UX × not every user every time · 「share-link resolve answer carries no object label and no field hidden flag, so the landing page prints the …」; UX has no p3 (15:07Z 「和 cloud 对齐」)

  5. added
    priority:p2
    and removed on Nov 18, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq

    Claim: PM loop · area f7-text · 2026-11-22T10:22Z
    Session: session_01QsR2jTyyBmoPBsURQjeJGq
    Account: zhuangjianguo
    Branch: claude/issue-33552-share-link-label-hidden
    Worktree: objectstack-issue-33552
    Domain: domain:server
    Seat: repo:objectstack#7
    Area: f7-text
    File surface: packages/types/src/share-link-resolve-answer.ts, the resolve route producer in packages/plugins/plugin-sharing/src/**, the console share landing page that prints link.object_name and lists fields, their tests, a changeset (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: objectstack GET /api/v1/share-links/{token}/resolve answers with no object label and no per-field hidden state | PR #33547 drops framework system/audit columns console-side; a hidden non-system field and the header label are outside it | every share-link recipient
    Thread-read: 6984990301
    Premise: holds — on origin/main 4e55e4e ShareLinkResolvedLink (packages/types/src/share-link-resolve-answer.ts) has no label key and the field projection has no hidden flag.
    Pre-claim lane: repo:objectstack whole-repo lane, area f7-text (seat 7 partition; the maintainer's 「同意」 2026-11-22T10:11Z on the seat thread).
    Pre-claim deps: #33346 row 99 / PR #33547 merged.
    Prior rulings read: title terms → 416 ADR hits (top: ADR-0061 D2 searchable fields, ADR-0027 §12), card thread 0 rulings of 2 comments (6984990301 is a regrade, read); triage's stop rule binds: "If any listed column turns out to be FLS-protected for the link's principal, stop and report it per security-findings.md, not on this card."
    Fold-or-serial: not folded.
    Serial constraints cleared: none on this file surface among open PRs (read 2026-11-22T10:22Z); open PR #36399 touches plugin-sharing/src/objects/sys-share-link.object.ts, outside this surface.
    Declaration note: yes (widening) — the published resolve answer type gains keys; L2 TIER_DEFAULT unless the diff edits packages/spec/src.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq
    os-dev-report

    {
      "issue": 33552,
      "status": "done",
      "branch": "claude/issue-33552-share-link-label-hidden",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36460",
      "session": "session_01QsR2jTyyBmoPBsURQjeJGq",
      "premise_still_valid": true,
      "summary": "buildShareLinkResolveAnswer (@objectstack/types) now answers two more things. link.object_label is the object's label in the request locale: the Accept-Language top tag, else the i18n default locale, translated by translateObject with the metaTranslateOptions rule; the declared label is the fallback. fields[NAME].hidden: true marks a field the object declares hidden, including the injected organization_id, owning_business_unit_id and queue columns. Both mounts pass Accept-Language and the i18n service: plugin-sharing registerShareLinkRoutes through a new optional i18n resolver wired in SharingServicePlugin, and the runtime dispatcher twin through deps.resolveService('i18n'). The console share page titles itself with the label (falling back to object_name), leaves off hidden fields, and sends the html lang as Accept-Language. FLS stop rule: the listed columns (owning_business_unit_id, queue) are UI-hidden with no requiredPermissions or maskingRule at their source, so the rule did not trigger. No packages/spec/src edit, so L2 stays at TIER_DEFAULT.",
      "tests": "At head 75f97ca66, under the lock (VERDICT command-exit 0): runtime share-links-field-projection.test.ts Tests 19 passed (19); types share-link-resolve-answer.test.ts Tests 14 passed (14). At 9a0a2b29a: types full test Test Files 39 passed (39), Tests 921 passed (921), with typecheck passing on types, plugin-sharing and runtime under set -e. Console from ui/, under the lock (VERDICT command-exit 0): 6 share-page files, Test Files 6 passed (6), Tests 51 passed (51). Ablations: types src is imported directly, so no dist step was needed; each mutation went through scripts/ablation-replace.mjs (anchor 1 to 0) and was restored to blob a2ae3fcb6b25. (1) Return the authored label instead of the translated one: 2 failed / 12 passed. (2) Delete the hidden projection line: 1 failed / 13 passed; this run was made unlocked after three queue-timeouts. The console filter was not ablated.",
      "gates": "dispatch-gates --ran with exit codes recorded: 78 derived, 74 run, 4 NOT MEASURED. The four exited 3 (prerequisite not met): check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads and check:i18n (workspace not fully built), check:type-check-debt (the closure build got no lock turn). pnpm --dir ui exec vitest run scripts/ exited 1: six tests timed out at 15 s under load average about 15, and the registry census could not import unbuilt packages; NOT MEASURED, environment. The call-site-keys gate those tests drive was run directly (node ui/scripts/check-i18n-call-site-keys.mjs, exit 0). check:test-source-alias first exited 1 on the edited runtime harness; fixed with a module-top @objectstack/metadata import, rerun exit 0. overlap-check --branch=HEAD: clean, exit 0. Control-byte scan: clean. PR check-runs at 75f97ca66 were in_progress when this report was written (Check Changeset, Lint, Type Check lanes, Governed Surface Queue Guard and others); not waited on.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — one fleet-write relay pr_create (objectstack-ai/objectstack#36460, assignees zhuangjianguo, read back byte-identical) and one post-stamped issue comment on #33552 (this report); git push is not a REST write",
      "files_changed": [
        "packages/types/src/share-link-resolve-answer.ts",
        "packages/types/src/share-link-resolve-answer.test.ts",
        "packages/plugins/plugin-sharing/src/share-link-routes.ts",
        "packages/plugins/plugin-sharing/src/sharing-plugin.ts",
        "packages/runtime/src/domains/share-links.ts",
        "packages/runtime/src/domains/share-links-field-projection.test.ts",
        "ui/apps/console/src/pages/shared-record-shape.ts",
        "ui/apps/console/src/pages/shared-record-shape.test.ts",
        "ui/apps/console/src/pages/SharedRecordFields.tsx",
        "ui/apps/console/src/pages/SharedRecordPage.tsx",
        "ui/apps/console/src/pages/SharedRecordPage.systemFields-33346.test.tsx",
        ".changeset/33552-share-link-label-hidden.md"
      ],
      "spec_src_edited": false,
      "deviations": [
        "Landing spot outside the claim's file surface: packages/runtime/src/domains/share-links.ts and its harness share-links-field-projection.test.ts. The resolve route has a second producer, the runtime dispatcher twin (cloud's primary surface), which builds the same answer. Taken under order-common's 'real producer is in another package' clause and named in the PR body. If the area reads the stop rule as overriding that clause, this is the breach to rule on.",
        "One test run was not under the lock: ablation 2 plus a console attempt that errored at load before any test ran. The lock had been held for 35+ min by pid 12792 (pnpm --filter @object-ui/app-shell test, another dev, 0% CPU on its wrapper), and three locked attempts timed out with exit 99.",
        "The derived gates ran in the background while ablation-2 attempts had packages/types/src/share-link-resolve-answer.ts mutated (one line deleted) for up to 9 min at a time. Their passes were not rerun on the restored tree; CI runs them on the real head.",
        "Changeset level patch with Clause-② yes (widening) and Metadata-protocol: none, copied verbatim from the claim."
      ],
      "line_budget": "n/a — no skills/** edit",
      "open_questions": [
        {
          "question": "Naming of the new answer key: link.object_label (beside link.object_name, as approval rows pair them) or a top-level key",
          "options": [
            "A keep link.object_label (shipped in this PR)",
            "B move it to a top-level objectLabel"
          ],
          "recommendation": "A, because it sits beside the object_name the page already reads and follows the object_name/object_label pair in the approvals contract"
        }
      ],
      "security_findings": "withheld",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the projection's field labels stay authored (not request-locale); the card asked only for the object label",
        "carrier: none · noted, not filed — SHARE_PASSWORD_VARY (@objectstack/types share-password-header.ts) does not list Accept-Language, though the resolve answer now varies on it; Cache-Control no-store already covers the public answers"
      ]
    }
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq
    os-dev-report

    Rework round 1 on PR #36460 is pushed. The head is now 274536590. Before it: 75f97ca66, then ec70ad9c5.

    L1-e REWORK (comment 7079684282): I took option (a).

    • sharedObjectLabel now passes packagedBase to translateObject. The packaged base is read through the request's metadata protocol (getPackagedObjectBase, the accessor the meta door's packagedObjectBaseOf reads for an object). Both mounts resolve the 'protocol' service per request.
    • No pairBundle is passed. An object is extend-only (ADR-0146 D10), so servedOverrideBaseOf answers none for it. The meta door therefore hands the object translator no pair catalog either, and a .custom pair's translation of the label reaches both doors through the deployment bundle.
    • Pins:
      • A code extension's rename of a packaged object keeps the rename under zh-CN, on both mounts over a real registry and protocol.
      • A control shows the unrenamed object is still translated.
      • The types unit pins also cover a throwing protocol.
    • The module header and the changeset now state these inputs.

    L2 S1 (comment 7079728874): done.

    • Both public routes on both mounts send Vary: X-Share-Password, X-Share-Password-Encoding, Accept-Language, from the new SHARE_LINK_PUBLIC_VARY.
    • The per-mount pins were updated and the docblocks name the third header.

    CI red at ec70ad9 (test-source alias): fixed. The two runtime header harnesses get a module-top import '@objectstack/metadata', and check:test-source-alias now exits 0 locally.

    Readings, all under the lock:

    • Closure rebuilt. Targeted tests: types 50/50, runtime 51/51, plugin 55/55. Typecheck passed on types, plugin-sharing and runtime.
    • Ablation A (drop packagedBase): the rename pin went red, 1 failed.
    • Ablation B (drop Accept-Language from Vary, with types rebuilt and the dist marker confirmed absent): runtime 3 failed, plugin 2 failed.
    • Both ablations were restored to the HEAD blob with git diff HEAD empty. The final-head reruns were green.
    • overlap-check: clean.

    The PR body was updated through the relay, read back byte-identical. The changeset stays at patch.

  10. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jTyyBmoPBsURQjeJGq

    Delivered · 2026-11-22T15:05Z · PR #36460 merged (Fixes #33552).

    • The shared-record page shows the object's label in the reader's language, from link.object_label. It takes the same inputs as GET /meta/object/NAME, so a renamed object keeps its rename.
    • Fields marked hidden are no longer shown.
    • Both mounts answer alike, and the public routes add Accept-Language to Vary.

    pm:dispatched removed in this stroke.

  11. removed
    pm:dispatched
    on Nov 22, 2026
  12. added a commit that references this issue on Nov 23, 2026
    9abc732
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:serverfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions