Skip to content

review follow-ups of PR #39076 #39179

Backlog
Backlog

Description

@objectstack-fleet

repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

Filing gate: the L1/L2 follow-up exception, one card per PR with each item ticked · Source: fleet. These are the review nits of PR #39076 (#38894, merged 516105671c), from contract records 7340755868 and 7356709230. The ACCEPT is 7356829401.

Business reason: these keep the record-print download honest at every door and every console road. Two items (8 and 10) are user-visible: a click that says success while delivering no file, and a saved file named from inside the header's fallback. The rest are test and text gaps that would let a regression in the print path pass unseen.

Reader: the next dev on packages/services/service-print/** or the console's attachment door (ui/packages/app-shell, apiActionDoor.ts / RecordDetailView.tsx); batch it there, or take it in the area's weekly sweep.

User-visible first:

  • 8. An api click that the record page fetches itself (not a declared object-bound action) reads the PDF as an empty answer and reports success with no file (RecordDetailView.tsx). feat(runtime): the REST action door delivers a target's attachment, and the console saves it as a download #39141's changeset declares it and says another claim holds the file; find that claim before building. One sentence in the print changeset or doc would also name it.
  • 10 (app-shell). The console's attachmentFilename does not understand quoted strings. A file name that itself holds ;filename*= is read from inside the route's quoted ASCII fallback; measured: 报价; filename*=UTF-8''evil.exe; y.pdf is saved as evil.exe. Only the requester's own filename can hold the token (a display value has * replaced), so no boundary is crossed. Still, a parser that respects quotes is the fix.
  • 9. A cross-origin console cannot read Content-Disposition (it is not in the CORS exposed headers) and saves the file as download. feat(runtime): the REST action door delivers a target's attachment, and the console saves it as a download #39141 declared this. Expose the header, or say so where the console's deployment is documented.

Texts:

  • 7. The print texts name MCP as the door that answers a print action 502. The host door's dispatchAction answers the same.
  • 11. print-pages.mdx lost main's defineAction sample. Now that the action delivers, restore a sample an author can copy.
  • 12. The new conformance pin's comment says only the renderer is replaced; the stub replaces the whole printRecordToPdf verb. Correct the comment.
  • 4. scripts/check-route-envelope.mjs:282: the comment still says every body is written by sendOk / sendError / sendServerFault.

Tests:

  • 1. print-door-member.test.ts: the "binary tail" payload is valid UTF-8, so a text round-trip would pass. Use bytes that are not valid UTF-8.
  • 2 (narrowed). No test drives a PDF answer through the runtime dispatcher's /print domain behind the action door, end to end. The new pin forwards to the kernel's own http.server mount on both transports.
  • 3. print-service-archive.dogfood.test.ts: the last "control" no longer controls anything a print does.
  • 5. The unit pin for "edit access is never asked" is findOne called once. The dogfood auditor test is the real proof; pin it at unit level too, or say so.
  • 6. A lone surrogate in app answers 500 from printPageUrl before the mint (unchanged from main). A 400 at validation would be tidier.

Dedupe: "PR #39076" (2 hits: #38894, the seat post), attachmentFilename (0), printPageUrl lone surrogate (1: #38894). No other open card covers these.

Grading: area:workflow · Task · p3 · reach: review reads and probes (records 7340755868, 7356709230). Item 8 is user-visible success-with-no-file; re-grade it if a customer reaches that road.

Activity

  1. added
    area:workflow
    on Dec 2, 2026
  2. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T22:06Z

    定级:area:workflow · Bug · p3 · 记录打印 PR #39076 的审阅尾项,其中第 8、10 条用户可见(点了显示成功却没有文件、文件名取错)· 读码

    • 作者定级保留,补 domain:server(另涉控制台 ui)、类型 Bug,进 pm:queue。
  3. added
    domain:server
    pm:queue
    on Dec 2, 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:workflowdomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions