"This project" search throws 500 if enter pressed while drop down being displayed
Summary
As reported by customer:
If I just enter in a project that exists and hit enter I get a 500 page.. If I select it from the drop down it works fine.
Steps to reproduce
- Start typing the name of an existing project in the "This project" search box.
- Once the drop down displays the list of matching names, press enter
- 500 error will be thrown
Example Project
It's reproducible on gitlab.com when using gitlab-ce or any other project.
What is the current bug behavior?
500 error is thrown because it queries the server without any parameters.
Example URL: https://gitlab.com/search?utf8=%E2%9C%93&search=gitlab-&group_id=&project_id=13083&scope=issues&repository_ref=
What is the expected correct behavior?
It should display a list of matching projects, or "Project ... not found".
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Customer issue:
Edited by Adam Mulvany