-
- Downloads
Properly handle LFS Batch API response in project import
Project imports were failing with `undefined method each_with_object for String` because the import was attempting to parse the LFS Batch API and failing due to the fact that the Content-Type wasn't a supported format (e.g. application/vnd.git-lfs+json instead of application/json). We now parse the body as JSON. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61624
Showing
- app/services/projects/lfs_pointers/lfs_download_link_list_service.rb 11 additions, 1 deletion...s/projects/lfs_pointers/lfs_download_link_list_service.rb
- changelogs/unreleased/sh-fix-lfs-download-errors.yml 5 additions, 0 deletionschangelogs/unreleased/sh-fix-lfs-download-errors.yml
- spec/services/projects/lfs_pointers/lfs_download_link_list_service_spec.rb 19 additions, 1 deletion...jects/lfs_pointers/lfs_download_link_list_service_spec.rb
Please register or sign in to comment