HTTP 500 error if a Gold user tries to access the Security Dashboard in a project that does not belong to a group

Error

HTTP 500 page is displayed after viewing the Security Dashboard in a project

Steps to reproduce

  1. Log-in to an account with GitLab Gold
  2. Create a new public repo for under user account but do NOT create the project under a group
  3. Go to the Security Dashboard screen
  4. See the HTTP 500 error

This was confirmed to happen for @stkerr and @plafoucriere

Discussion

  1. Slack discussion threads:
    • https://gitlab.slack.com/archives/C0AR2KW4B/p1564774696213300
    • https://gitlab.slack.com/archives/C8S0HHM44/p1564777983238000?thread_ts=1564776626.237800&cid=C8S0HHM44

Links with examples

  1. https://gitlab.com/stkerr/expressexample/security/dashboard is the repo I originally found this issue in.

Examples of the error

image image

Assignee Loading
Time tracking Loading