Special file name in CI artifact causes the artifact to be undownloadable #13441

Closed
opened 2025-11-02 10:42:26 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @MWTJC on GitHub (Aug 31, 2024).

Description

Due to my ignorance at the beginning, I accidentally specified a file name with Spaces in the upload-artifact@v3 part of CI construction workflow, and found that the artifact file could not be downloaded under this circumstance.

Gitea Version

gitea-1.22.0-gogit-windows-4.0-amd64

Can you reproduce the bug on the Gitea demo site?

No, https://demo.gitea.com/MWTJC/CI_artifact_test/actions/runs/1, no bugs here.

Log Gist

fail

2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView)
2024/08/31 11:17:47 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 20.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:48 ...eb/routing/logger.go:68:func1() [I] router: polling   GET /user/events for [?]:0, elapsed 3770.0ms @ events/events.go:18(events.Events)
2024/08/31 11:17:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.0ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 6.1ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.7ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.7ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:51 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 12.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:53 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 26.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:55 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 16.5ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:55 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.4ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:57 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 14.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:17:58 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 5.6ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 11:17:59 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 31.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:18:01 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 18.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 11:18:03 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 31.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)

succ

2024/08/31 10:51:07 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 9.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:09 ...eb/routing/logger.go:68:func1() [I] router: polling   GET /user/events for [?]:0, elapsed 3020.2ms @ events/events.go:18(events.Events)
2024/08/31 10:51:09 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 19.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 5.2ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 4.8ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 3.7ms @ context/repo.go:410(context.RepoAssignment)
2024/08/31 10:51:11 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:13 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 4.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView)
2024/08/31 10:51:15 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 4.3ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:19 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 3.5ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)
2024/08/31 10:51:21 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 9.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm)

Screenshots


- name: upload_dist
  uses: upload-artifact@v3
   with:
    name: win64 dist
    path: |
      .\dist\*.exe
    if-no-files-found: error
    compression-level: 9
    overwrite: true


Git Version

git version 2.42.0.windows.2

Operating System

Windows11 23H2 workstation

How are you running Gitea?

non virtual env, run with double clicked gitea-1.22.0-gogit-windows-4.0-amd64.exe, act_runner with cmd: .\act_runner-0.2.10-windows-amd64.exe -c .\config.yaml daemon.

both use Caddy reverse_proxy for domain binding.

Database

PostgreSQL

Originally created by @MWTJC on GitHub (Aug 31, 2024). ### Description Due to my ignorance at the beginning, I accidentally specified a file name with Spaces in the upload-artifact@v3 part of CI construction workflow, and found that the artifact file could not be downloaded under this circumstance. ### Gitea Version gitea-1.22.0-gogit-windows-4.0-amd64 ### Can you reproduce the bug on the Gitea demo site? No, `https://demo.gitea.com/MWTJC/CI_artifact_test/actions/runs/1`, no bugs here. ### Log Gist fail ``` 2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView) 2024/08/31 11:17:47 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 20.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:48 ...eb/routing/logger.go:68:func1() [I] router: polling GET /user/events for [?]:0, elapsed 3770.0ms @ events/events.go:18(events.Events) 2024/08/31 11:17:49 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.0ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 6.1ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.7ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.7ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:51 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 12.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:53 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 26.6ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:55 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 16.5ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:55 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 4.4ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:57 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 14.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:17:58 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 5.6ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 11:17:59 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 31.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:18:01 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 18.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 11:18:03 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 31.1ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) ``` succ ``` 2024/08/31 10:51:07 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 9.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:09 ...eb/routing/logger.go:68:func1() [I] router: polling GET /user/events for [?]:0, elapsed 3020.2ms @ events/events.go:18(events.Events) 2024/08/31 10:51:09 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 19.4ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 5.2ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 4.8ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 3.7ms @ context/repo.go:410(context.RepoAssignment) 2024/08/31 10:51:11 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:13 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 4.7ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView) 2024/08/31 10:51:15 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 4.3ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:17 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 10.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:19 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 3.5ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) 2024/08/31 10:51:21 ...eb/routing/logger.go:102:func1() [I] router: completed POST /api/actions/runner.v1.RunnerService/FetchTask for [?]:0, 200 OK in 9.8ms @ <autogenerated>:1(http.Handler.ServeHTTP-fm) ``` ### Screenshots ```yml - name: upload_dist   uses: upload-artifact@v3   with:   name: win64 dist   path: |   .\dist\*.exe   if-no-files-found: error   compression-level: 9   overwrite: true ``` ### Git Version git version 2.42.0.windows.2 ### Operating System Windows11 23H2 workstation ### How are you running Gitea? non virtual env, run with double clicked `gitea-1.22.0-gogit-windows-4.0-amd64.exe`, act_runner with cmd: `.\act_runner-0.2.10-windows-amd64.exe -c .\config.yaml daemon`. both use Caddy reverse_proxy for domain binding. ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:42:26 -06:00
Author
Owner

@fuxiaohei commented on GitHub (Sep 9, 2024):

I found two log:

2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView)

this line shows the artifact is accessible on actions.ArtifactsDownloadView handle.

2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment)

this line shows the 404 is from context.RepoAssignment.
It should happen when the owner is not found or the project is not found by the repo name or the owner.

No matter Spaces in artifact name, It shows same case in win64_dist.zip:

2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment)

Can you check the permission or provide more details about the steps to access artifact?

@fuxiaohei commented on GitHub (Sep 9, 2024): I found two log: ``` 2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView) ``` this line shows the artifact is accessible on `actions.ArtifactsDownloadView` handle. ``` 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment) ``` this line shows the 404 is from `context.RepoAssignment`. It should happen when the owner is not found or the project is not found by the repo name or the owner. No matter `Spaces` in artifact name, It shows same case in `win64_dist.zip`: ``` 2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView) 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment) ``` Can you check the permission or provide more details about the steps to access artifact?
Author
Owner

@MWTJC commented on GitHub (Sep 9, 2024):

I found two log:

2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView)

this line shows the artifact is accessible on actions.ArtifactsDownloadView handle.

2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment)

this line shows the 404 is from context.RepoAssignment. It should happen when the owner is not found or the project is not found by the repo name or the owner.

No matter Spaces in artifact name, It shows same case in win64_dist.zip:

2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView)
2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment)

Can you check the permission or provide more details about the steps to access artifact?

I seem to have misjudged because I turn IDM(internet download manager) on so often.
There should be no problem with permissions, I just download as the Administrator account of repo.
but problems when download using IDM plugins, when IDM is off, download is hosted by browser, everything works;
when IDM is on, right clicked on the artifact and choose "Download using IDM", everything works too, only when left clicking triggers IDM download, it fails. Then, IDM returns a warning messaage: "some sites does not allow requesting a link second time" when download is failing.

@MWTJC commented on GitHub (Sep 9, 2024): > I found two log: > > ``` > 2024/08/31 11:17:45 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 200 OK in 52.4ms @ actions/view.go:587(actions.ArtifactsDownloadView) > ``` > > this line shows the artifact is accessible on `actions.ArtifactsDownloadView` handle. > > ``` > 2024/08/31 11:17:50 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/23/artifacts/win64%20Build for [?]:0, 404 Not Found in 8.4ms @ context/repo.go:410(context.RepoAssignment) > ``` > > this line shows the 404 is from `context.RepoAssignment`. It should happen when the owner is not found or the project is not found by the repo name or the owner. > > No matter `Spaces` in artifact name, It shows same case in `win64_dist.zip`: > > ``` > 2024/08/31 10:51:14 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 200 OK in 699.2ms @ actions/view.go:587(actions.ArtifactsDownloadView) > 2024/08/31 10:51:10 ...eb/routing/logger.go:102:func1() [I] router: completed GET /dev-engineer/smalltool20240829/actions/runs/24/artifacts/win64_dist.zip for [?]:0, 404 Not Found in 8.5ms @ context/repo.go:410(context.RepoAssignment) > ``` > > Can you check the permission or provide more details about the steps to access artifact? I seem to have misjudged because I turn IDM(internet download manager) on so often. There should be no problem with permissions, I just download as the Administrator account of repo. but problems when download using IDM plugins, when IDM is off, download is hosted by browser, everything works; when IDM is on, right clicked on the artifact and choose "Download using IDM", everything works too, only when left clicking triggers IDM download, it fails. Then, IDM returns a warning messaage: "some sites does not allow requesting a link second time" when download is failing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13441