SendEntry fails with "gitlab-zip-cat: OpenArchive: not a zip" when Content-Length header is not set on object storage response
S3-like object storage system NetApp StorageGRID does not set the Content-Length
header in its responses. As a result, when attempting to download a specific file from a pipeline via the UI, workhorse fails with error gitlab-zip-cat: OpenArchive: not a zip
.
This is due to OpenHTTPArchive
relying on resp.ContentLength when creating the zip reader.
One potential fix would be to buffer the full file in memory, but this could get expensive with very large artifacts.
A similar problem in SendURL
is being addressed by !496 (closed)
/cc @legege @nick.thomas