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

  1. Create new user that starts with admin.
  2. Load user profile page.
  3. If not admin, it will lead to 404 page.
    1. If admin, it will lead to admin page and display error Error loading the statistics. Please try again

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

Click to expand Screenshot_2022-02-08_at_3.36.49_PM

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.

Edited by 🤖 GitLab Bot 🤖