Skip LFS fragment on redirect
- Jul 16, 2021
-
-
Signed-off-by:
Pascal Fautré <pascal.fautre@alt-tab.be>
-
- Jul 08, 2021
-
-
Pascal Fautré authored
-
Pascal Fautré authored
-
Fixes issue #335495 (closed) : LFS download service not skipping body fragment on redirect:
When mirroring an external repository using object storage (Gitlab + S3), I get a 'size mismatch' error.
This is due to the body of the redirection not being skipped in this code: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/projects/lfs_pointers/lfs_download_service.rb#L63
Minor change only impacting LFS download service
Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.
@gitlab-com/gl-security/appsec