LFS hits Error 500 when size limits are exceeded: Undefined local variable or method `objects` for `Projects::LfsStorageController`
Created by @stanhu.
https://sentry.gitlap.com/gitlab/gitlabcom/issues/14622/
NameError: undefined local variable or method `objects' for #<Projects::LfsStorageController:0x007fa7821c28a8>
app/controllers/projects/application_controller.rb:66:in `method_missing'
super
app/helpers/lfs_helper.rb:56:in `objects_exceed_repo_limit?'
size_of_objects = objects.sum { |o| o[:size] }
app/helpers/lfs_helper.rb:47:in `lfs_upload_access?'
return false if project.above_size_limit? || objects_exceed_repo_limit?
app/helpers/lfs_helper.rb:18:in `lfs_check_access!'
return if upload_request? && lfs_upload_access?
lib/gitlab/request_profiler/middleware.rb:15:in `call'
@app.call(env)
...
(94 additional frame(s) were not displayed)