Uploading a zip file to artifacts is not working in Gitlab 13.9
I recently updated our on-premise installation of Gitlab to version 13.9 and the gitlab-release to latest version 4.5.
Since the upgrade the packed zip is by default no longer uploaded and added to the description. Instead it is added to the artifacts categorized as others.
While the filename is shown in the release window, the link is pointin to a non existing gitlab site and instead of a download you get a 404 error.
Reviewing the actual link shows it is an invalid mixture. The first part of the url is referencing the API and the second part of the url looks like a file upload url usually appended to the project url and not to the API:
https://myserver.com/api/v4/projects/147//uploads/5383e3c26ef94c507783bb10e1c77114/Filename_V9.9.9.zip
When I change the first part of the URL to a project url instead of an API url the download works as expected:
https://myserver.com/group/project/uploads/5383e3c26ef94c507783bb10e1c77114/Filename_V9.9.9.zip
I checked you code and it looks like you actually created the url as described above: api_url + response['url']
.
With a slight modification of your code I could get the release working as expected. I`ve attached the patch.
Please have a look and apply either the proposed change or fix the issue by your own approach.
Thanks for your support.
Here is the patch:
0001-Fixed-issue-when-uploading-release-content-into-arti.patch