Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Component/s: core
-
Labels:
-
Environment:Jenkins 2.148
Jenkins 2.138.2
-
Similar Issues:
Description
Creating a user (via Manage Jenkins -> Manage Users -> Create User) with a name containing a dot (".") returns HTTP/1.1 200 but does not create user and remains on same page. I can not find this behavior documented anywhere, and in an older Jenkins version I was able to create users with dots in their name. Currently I have several users with dots in their name, but I can no longer create new ones.
Okay it's from design. This is the relevant security change in 2.121 that restricts usernames:
Setting the mentioned hudson.security.HudsonPrivateSecurityRealm.ID_REGEX system property at startup to ^[a-zA-Z0-9_.-]+$ works
An error message like "Invalid username. By default, usernames must only contain alphanumeric characters, underscore and dash." should be shown.