Closed Bug 1346740 Opened 8 years ago Closed 7 years ago

Modifying users via the Django admin fails due to forbidden '/' in username

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: emorley, Unassigned)

References

Details

1) Log into Treeherder as someone with is_staff set 2) Visit https://treeherder.mozilla.org/admin/auth/user/ 3) Select a user and try to modify them (eg change their is_staff bit, or mark the user as disabled) Expected: Works Actual: Form submission fails with error: "Enter a valid username. This value may contain only English letters, numbers, and @/./+/-/_ characters." This is due to the forward slash in the username from the `mozilla-ldap/` or `email/` prefixes. I'm guessing that to fix this we'd need to subclass the Django user model and adjust the form validation on that field. In the meantime the workaround is to edit the auth_user table manually on the DB.
Wontfix since we're removing Django admin in bug 1065784.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.