Skip to content

Upload adapter: a byte upload the storage refuses with a definitive 4xx (403 expired signature, 413 too large) is re-sent whole up to three more times, so the user waits ~3.5 s longer for the same error #38270

Backlog

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Filing gate: ① (a) out-of-scope finding from the #38163 card thread (PR #38237), graded by the L1-a review (7238125504) and re-read by the seat on origin/main. Source: fleet.
Grading: area:ux · domain:ui · Bug · p3 · reach: every console file upload through createObjectStackUploadAdapter that the storage refuses. The upload still fails with the right error, but only after the whole file is sent three more times and about 3.5 s of back-off pass. On a large file over a slow link that is real bandwidth and time. Nothing is stored wrongly.
Dedupe: "uploadWithProgress retry 4xx", "upload retry 413" → none.

维护者速读

  • 问题:上传文件时,存储服务明确拒收(签名过期 403、文件太大 413 等),控制台还会把整个文件再传最多 3 次,用户要多等约 3.5 秒才看到同一个报错。
  • 修法:只对网络错误、5xx、408、429 重试,其余 4xx 立即报错。
  • 要你做的:无。

What happens

ui/packages/data-objectstack/src/upload-adapter.ts uploadWithProgress (~200-235) catches every failure of the byte PUT, including res.ok === false and the XHR path's status refusal, and retries up to maxRetries (default 3) with 500 ms × 2^n back-off. A definitive refusal cannot succeed on retry.

Expected

Size: XS
Related: #38163, PR #38237.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Path: none
    Triage: lands in ui/packages/data-objectstack/src/upload-adapter.ts · area:ux · domain:ui · Bug · p3 → p2 · pm:queue · size XS. Rationale: uploadWithProgress retries every failure except an abort, up to three times, so a definitive storage 4xx (expired signature, 413) re-sends the whole file three more times and about 3.5 s of back-off passes before the right error shows. That is a feedback problem, and the UX rule has no p3, so the fleet p3 (bot-set) rises to p2. Same module precedent: #38163 (area:ux · domain:ui).
    Grade: area:ux · Bug · Cosmetic (slow, unhelpful feedback) · reach: console file uploads refused with a definitive 4xx · evidence: read (origin/main).

    Recorded 2026-11-28T13:56Z.

  3. added
    priority:p2
    and removed 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:uxbugdomain:uipm:queuepriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions