Unable to load user profile page if start with admin.
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
If a username starts with admin., they are unable to view their userpage. Example: https://gitlab.com/admin.xxx
This bug is reported by Premium Customer via Internal ticket (All GitLab Team members can view)
Steps to reproduce
- Create new user that starts with
admin. - Load user profile page.
- If not admin, it will lead to 404 page.
- If admin, it will lead to admin page and display error
Error loading the statistics. Please try again
- If admin, it will lead to admin page and display error
Example User
https://gitlab.com/admin.xxx
What is the current bug behavior?
If not admin, it will lead to 404 page.
If admin, it will lead to admin page and display error Error loading the statistics. Please try again
What is the expected correct behavior?
Since it is a valid user, it should be directed to their user profile page instead of admin page.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com 14.8.0-pre 63f8cbe8
Notes
In Chrome Network tab we can see that the request header path is incorrect:
:path: /api/undefined/application/statistics
referer: https://<gitlab_url>/admin.xxx
Workaround (Self-Managed)
The workaround we use for now is accessing https://<gitlab_url>/users/admin.xxx/activity then switch on "Overview" tab.
