summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorHannes Rosenögger <123haynes@gmail.com>2015-07-11 19:28:43 +0000
committerHannes Rosenögger <123haynes@gmail.com>2015-07-11 19:28:43 +0000
commitf94587eccbeda3bd0092588a12ddf9a586b29dce (patch)
tree95b8c43c9144c41fb0eb8dc6ccab2ec7f6e31c6a /lib/api
parentdc6aa1d34a3f78a757d829eb8cd050fa381cef99 (diff)
parent96644c1fc146b55795d36cf4c03a80d2d58d112e (diff)
downloadgitlab-ce-f94587eccbeda3bd0092588a12ddf9a586b29dce.tar.gz
Merge branch 'improve-autocomplete-controller-for-unknowns' into 'master'
Better handle unknown projects and groups for autocomplete While working on !963, 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. See merge request !964
Diffstat (limited to 'lib/api')
0 files changed, 0 insertions, 0 deletions