[R5] /assets 上传与下载 #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
部署背景
单域名 https://wire.treeden.app:根路径由 wire-webapp 提供静态前端(Express 服务);
/api/*与/ws/*由 Caddy 反代到 wire-rs,并剥离前缀(handle_path)。前端配置BACKEND_REST=https://wire.treeden.app/api、BACKEND_WS=wss://wire.treeden.app/ws。现象与冒烟证据
wire-rs 未实现
/assets,头像与文件消息无法使用。冒烟测试(2026-11-09,wire-rs
ccecae5release 构建):/healthz200、/api-version200(supported 0–19,development 19)、POST /register201、POST /login200(zuidcookie:Path=/access; Secure; HttpOnly; SameSite=Lax)、GET /self200、POST /access200、GET /conversations200、/awaitWebSocket 101;而/v6/self404、/feature-configs404、/properties404、/teams404、/list-connections404、/notifications/last404、/calls/config/v2404、/system/settings/unauthorized404、/conversations/list-ids400(被当作会话 ID 解析)、/mls/public-keys400(未配置 removal key)。期望行为
实现资源上传/下载(本地文件存储即可),返回与参考实现一致的 key/token。
涉及文件/模块
src/http.rssrc/assets/(新增)migrations/工作量估计
L(3–5 天)
keith referenced this issue from keith/wire-webapp2026-11-08 23:06:07 +00:00
keith referenced this issue2026-11-08 23:06:07 +00:00
keith referenced this issue from keith/wire-webapp2026-11-08 23:37:04 +00:00
[R6] /assets 上传与下载to [R5] /assets 上传与下载已实现并通过 M11 验收
/assets本地上传/下载/删除:手写有界 multipart/mixed 解析(上限 25 MiB)、token 与 public 两种生命周期、路径穿越防护、迁移 0010 元数据持久化。已知限制:本地文件无 GC;
expires只存不判;下载有界缓冲;错误标签为项目定稿(如413 asset-too-large);ASSETS_DIR未设置时资产路由返回 500。M11 accepted · commit
56437e7· docdocs/milestones/M11.md· gates: default 886 / test:db 177 (14 suites) / interop 971 / live 14 (×3, no flake) · integration agent 221 real-process assertions.