-
Notifications
You must be signed in to change notification settings - Fork 975
Open
Labels
needs-triageIssue that require triageIssue that require triage
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
If you create a user named roles
and try to view their workspace as admin, you get a 404 because roles
is considered part of GET /user/roles
.

Relevant Log Output
Expected Behavior
The following usernames should be prohibited:
me
(conflicts withGET /users/me
)roles
(conflicts withGET /users/roles
)authmethods
first
There are likely more. We should stop putting endpoints under routes with ID/name wildcard parameters.
Steps to Reproduce
- Create a user with a bad username
- Create a workspace for that user
- The workspace will fail to load in the UI when viewing the new user's workspace as an admin
Environment
No response
Additional Context
The issue occurs consistently
ethanndickson
Metadata
Metadata
Assignees
Labels
needs-triageIssue that require triageIssue that require triage