Skip to content

Better handle unknown projects and groups for autocomplete

While working on !963 (merged), I noticed that specifying an unknown project ID or group ID would cause an error in the controller. This MR improves on the handling of unknown projects or groups:

  1. If the user is authenticated, return a blank JSON with a 404 error.
  2. Otherwise, redirect the user to login so we don't leak information about whether certain projects/groups exist.

Merge request reports