Skip to content

修复构建产物下载预检返回 405 - #19

Merged
LLMxPM merged 1 commit into
mainfrom
feature/fix-build-artifact-head
Oct 27, 2026
Merged

LLMxPM merged 1 commit into
mainfrom
feature/fix-build-artifact-head

Conversation

@LLMxPM

@LLMxPM LLMxPM commented Oct 27, 2026

Copy link
Copy Markdown
Owner

问题

Editor 下载构建产物前发送 HEAD 请求,但 Backend 仅注册同路径 GET,导致线上 lite 镜像返回 405,下载流程中断。

修改

  • 为登录态构建产物下载路径注册 HEAD,复用现有鉴权、存在性检查与响应头。
  • 增加集成回归:产物存在时 HEAD 返回文件元信息且无响应体,删除后返回 404。

验证

  • uv run --project backend pytest backend/tests/integration/test_project_build.py -q -k test_project_build_artifact_upload_download_and_delete_should_persist_metadata:1 passed。

@LLMxPM
LLMxPM marked this pull request as ready for review October 27, 2026 05:35
@LLMxPM
LLMxPM merged commit 0152cf9 into main Oct 27, 2026
15 checks passed
@LLMxPM
LLMxPM deleted the feature/fix-build-artifact-head branch October 27, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant