0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-18 20:10:04 +02:00
Giteabot 4a19964921
fix(actions): return 404 when job log blob is missing (#38003) (#38004)
Backport #38003 by @bircni

- When the `action_task` row exists but the underlying dbfs/storage blob
is gone, `OpenLogs` returns a wrapped `os.ErrNotExist` which surfaces as
a 500 on the job logs endpoints.
- Translate it to the same `util.NewNotExistErrorf` shape already used
for unknown job ids / expired logs, so both the API
(`/api/v1/repos/.../actions/jobs/<id>/logs`) and the web download
handler return a clean 404 instead.

Fixes #37990.

Co-authored-by: bircni <bircni@icloud.com>
2026-06-05 18:42:15 +00:00
..
2025-04-01 10:14:01 +00:00
2026-03-08 17:59:46 +08:00
2026-01-24 05:11:49 +00:00
2026-01-24 05:11:49 +00:00