undefined method `unique_project_download_limit_enabled?' for nil:NilClass (NoMethodError)
Summary
Requests to /api/v4/groups fail with:
NoMethodError
undefined method `unique_project_download_limit_enabled?' for nil:NilClass (NoMethodError)
next unless root_namespace.unique_project_download_limit_enabled?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Steps to reproduce
Send a request to the endpoint
Example Project
/
What is the current bug behavior?
Error is returned
What is the expected correct behavior?
The endpoint does not return a 500
Relevant logs and/or screenshots
- https://log.gprd.gitlab.net/app/r/s/5NCjN
- https://new-sentry.gitlab.net/organizations/gitlab/issues/1021215/?query=is%3Aunresolved+correlation_id%3A9314fa4528deb45b47aa7234b649a34d&referrer=issue-stream&statsPeriod=14d&stream_index=0
Output of checks
This bug happens on GitLab.com - GitLab Enterprise Edition 17.5.0-pre c817d4fdb97
Possible fixes
Edited by Alex Pooley