RangeError: integer 2147483648 too big to convert to `int'
Problem
Error found in the Sentry logs
https://sentry.gitlab.net/gitlab/gitlabcom/issues/3357084/?referrer=gitlab_plugin
RangeError: integer 2147483648 too big to convert to `int'
lib/gitlab/gitaly_client/commit_service.rb:175:in `initialize'
request = Gitaly::ListLastCommitsForTreeRequest.new(
lib/gitlab/gitaly_client/commit_service.rb:175:in `new'
request = Gitaly::ListLastCommitsForTreeRequest.new(
lib/gitlab/gitaly_client/commit_service.rb:175:in `list_last_commits_for_tree'
request = Gitaly::ListLastCommitsForTreeRequest.new(
lib/gitlab/git/repository.rb:1023:in `block in list_last_commits_for_tree'
gitaly_commit_client.list_last_commits_for_tree(sha, path, offset: offset, limit: limit, literal_pathspec: literal_pathspec)
lib/gitlab/git/wraps_gitaly_errors.rb:7:in `wrapped_gitaly_errors'
yield block
...
(178 additional frame(s) were not displayed)
Proposal
Validate values at the Model / Controller layer.
Edited by Sean Carroll