Customer reported errors loading project-level vulnerability report & exporting

Summary

A large customer is reporting that they are receiving errors when viewing their group-level vulnerability report. They are also receiving errors when trying to export their project-level report.

Related helpdesk tickets:

Slack discussion: https://gitlab.slack.com/archives/C8S0HHM44/p1615843592125200

Steps to reproduce

Example Project

What is the current bug behavior?

Receiving "Error fetching the vulnerability list. Please check your network connection and try again" when loading the group-level vulnerability report

Receiving "There was an error while generating the report." when attempting to export the project-level vulnerability report.

What is the expected correct behavior?

The report should load showing the vulnerabilities present in projects within the group.

The export should generate a CSV of the vulnerabilities present in projects.

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Lindsay Kerr