500 when adding a callback url with a * as the port in OAuth apps
Summary
500 response and error page from gitlab.com when saving an OAuth application with a *
in the port such as http://localhost:*/login
Steps to reproduce
- Create a new (or use an existing one) OAuth application at https://gitlab.com/oauth/applications/
- Click Edit to edit the application (should be on https://gitlab.com/oauth/applications/*/edit)
- Add
http://localhost:*/login
to theRedirect URI
field - Click save
Example Project
This is a problem with user settings rather than a project related. It seems to be the case with all OAuth applications that I have tried.
What is the current bug behavior?
The generic 500 error pages is displayed indicating a server-side issue.
What is the expected correct behavior?
The page to either save or a user-friendly error message to be displayed telling the user what they did wrong (such as if you repeat this on the creating a new application page you get a Redirect URI must be a valid URI.
error returned).
Relevant logs and/or screenshots
No logs client side as the problem appears to be server side.
Output of checks
This bug happens on GitLab.com